docs: remove retired admin route example (#374)
Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Skipped
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 2s

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
This commit was merged in pull request #374.
This commit is contained in:
arnaud.dartois authored and Arnaud Dartois committed 2026-11-13 10:47:30 +01:00
1 parent c065b44578
commit 79b4b86177
2 files changed
+16 -4

No files matched your search

+15 -3
View File
@@ -192,10 +192,22 @@ policy appliquée à ces deux endpoints dans le contrôleur actuel.
### Implementation Blazor
```csharp
// Layout — masquer le menu Admin si pas Admin
@if (await AuthorizeService.HasPermissionAsync(AppPermissions.AdminManage))
// MainLayout — le groupe Administration apparaît avec l’une de ces permissions.
@if (Auth.HasPermission("Admin.Users") || Auth.HasPermission("Admin.Manage"))
{
<MudNavLink Href="/admin">⚙️ Administration</MudNavLink>
<MudText Typo="Typo.overline">Administration</MudText>
@if (Auth.HasPermission("Admin.Users"))
{
<MudNavLink Href="/users">Utilisateurs</MudNavLink>
<MudNavLink Href="/admin/groups">Groupes</MudNavLink>
<MudNavLink Href="/admin/roles">Rôles</MudNavLink>
}
@if (Auth.HasPermission("Admin.Manage"))
{
<MudNavLink Href="/admin/claims">Claims</MudNavLink>
}
}
// Page Events — filtrer par site si User non-Admin
+1 -1
View File
@@ -9,7 +9,7 @@ Heimdall renders its root `Routes` component in an interactive server circuit wi
The reusable interactive error screen is `Components/Pages/NotFound.razor`. It owns its `MainLayout`, title/body localization, and the return link to `/dashboard`. Keep it assigned as `Router.NotFoundPage` for client-side unknown navigation. Keep the static HTTP fallback's resource keys and link target aligned with this component.
When maintaining the route inventory in `docs/ui-pages.md`, verify each current route against the Razor `@page` directives. Mark removed mockups as historical and link to the replacement pages; do not preserve a retired route such as `/admin` as if it were still mapped.
When maintaining route documentation, verify each current route against the Razor `@page` directives. Also check route examples in navigation and authorization guides against the current layout links and their visibility conditions. Mark removed mockups as historical and link to the replacement pages; do not preserve a retired route such as `/admin` as if it were still mapped.
## Acceptance workflow