Remove stale per-page Authorize(Roles) attributes
All 26 pages had @attribute [Authorize(Roles = "Admin,SuperAdmin")] which
conflicts with the Keycloak role sor-admin. The fallback policy in Program.cs
already enforces RequireRole("sor-admin") globally, making these attributes
redundant. Removing them fixes Access Denied for all admin pages.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
@page "/collection"
|
||||
@attribute [Authorize(Roles = "Admin,SuperAdmin")]
|
||||
@inject CollectionDbContext CollectionDb
|
||||
@inject NavigationManager Nav
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@page "/collection/player/{AccountId:guid}"
|
||||
@attribute [Authorize(Roles = "Admin,SuperAdmin")]
|
||||
@inject CollectionDbContext CollectionDb
|
||||
@inject CatalogDbContext CatalogDb
|
||||
@inject SOR.Database.Contexts.SorIdentityDbContext IdentityDb
|
||||
|
||||
Reference in New Issue
Block a user