generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 97
Labels
complexity: mediump-feature: User PermissionsFeature includes how user access levels / user permissions will be implemented in the productFeature includes how user access levels / user permissions will be implemented in the productrole: Front Endsize: 1ptCan be done in 4-6 hoursCan be done in 4-6 hours
Milestone
Description
Overview
Prevent admin and super admin users from revoking their own VRMS Admin access. The VRMS Admin toggle should be disabled (grayed out) when users view their own account, ensuring they cannot remove their own admin privileges. Admins should still be able to modify the admin access of other admins (except super admins, whose access cannot be changed by regular admins).
Action Items
- Identify when the logged-in user is viewing their own profile within Users > User Search.
- When the logged-in user views their own profile:
- Disable (gray out) the VRMS Admin toggle.
- Prevent any interaction that would allow changing the admin status.
- Maintain current behavior for other cases:
- Admins can change the VRMS Admin status of other admin users.
- Regular admins cannot modify the Super Admin toggle or permissions.
- Ensure the UI clearly communicates the toggle’s disabled state using the same styling used for the Super Admin toggle.
- Verify that no API calls are triggered when the disabled toggle is clicked.
- Test across user types (Admin, Super Admin) to confirm expected permission behavior.
Resources/Instructions
- Reference styling and logic from the existing Super Admin toggle behavior.
Metadata
Metadata
Assignees
Labels
complexity: mediump-feature: User PermissionsFeature includes how user access levels / user permissions will be implemented in the productFeature includes how user access levels / user permissions will be implemented in the productrole: Front Endsize: 1ptCan be done in 4-6 hoursCan be done in 4-6 hours
Type
Projects
Status
In progress
