Add recommendation to enable admin mode on roles and permissions page

What does this MR do and why?

On the Admin -> Roles and permissions page, a list of roles is shown:

ksnip_20250722-002653

We recently added custom admin roles, which are roles that can be assigned to non-admin users to grant them access to only specific parts of the Admin area.

We also have a feature called Admin mode, which requires the user to re-authenticate when they're trying to access the Admin area.

If Admin mode is off, on the Roles and permissions page we want to show a message to recommend that Admin mode be enabled. This MR adds in the recommendation message. The message only shows if 1. it's the instance-level Roles and permissions page, there's at least one admin custom role, and Admin mode is not enabled.

ksnip_20250722-004120

How to set up and validate locally

2025-07-22_00-47-09

Related to #555414 (closed)

Edited by Daniel Tian

Merge request reports

Loading