Skip to content

Disable Ability for Admins to Revoke Their Own VRMS Admin Access #2043

@JackHaeg

Description

@JackHaeg

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.
Example of existing Super Admin toggle behavior (greyed out toggle that cannot be clicked)

Image

Metadata

Metadata

Assignees

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions