docs: remove retired admin route example #374

Merged
arnaud.dartois merged 1 commits from docs/auth-roles-admin-nav-373 into main 2026-11-13 10:47:30 +01:00
2 changed files with 16 additions and 4 deletions

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