-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
taskA piece of work that isn't necessarily tied to a specific Epic or Story.A piece of work that isn't necessarily tied to a specific Epic or Story.
Description
Description
Context / Problem
Current hasPermission(scope, teamMembership, context)
can deny admins when application-level roles are lower than team role. This risks locking out admins in the UI. Add an early return that grants all permissions if teamMembership.role === 'admin'
(or equivalent numeric) or user.admin === true
(from the account store).
Acceptance criteria
hasPermission
returnstrue
immediately when:teamMembership.role
is admin, oruser.admin === true
.
- Bypass applies before any application-level role checks or feature-flag logic.
- Non-admin behavior remains unchanged, including application-scoped role resolution.
- No server-side authorization changes. FE-only safeguard.
Epic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Metadata
Metadata
Assignees
Labels
taskA piece of work that isn't necessarily tied to a specific Epic or Story.A piece of work that isn't necessarily tied to a specific Epic or Story.
Type
Projects
Status
No status