@page "/account" @attribute [Microsoft.AspNetCore.Authorization.Authorize] @using System.Security.Claims @using ZB.MOM.WW.OtOpcUa.Admin.Services
@usernameNo Admin roles mapped — sign-in would have been blocked, so if you're seeing this, the session claim is likely stale.
} else {
Each Admin role grants a fixed capability set per admin-ui.md §Admin Roles.
Pages below reflect what this session can access; the route's [Authorize] guard
is the ground truth — this table mirrors it for readability.
| Capability | Required role(s) | You have it? |
|---|---|---|
| @cap.Name @cap.Description |
@string.Join(" or ", cap.RequiredRoles) | @if (has) { Yes } else { No } |