Skip to content

Custom roles: check+disable inherited permissions

What does this MR do and why?

Displays permissions inherited from the base role, and prevents selecting them.

Also prevents selecting permissions until a base role has been selected.

See #430915 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2024-05-08_at_12.37.50 Screen_Recording_2024-05-08_at_12.36.25

How to set up and validate locally

  1. Make sure you have an ultimate license
  2. Navigate to http://gdk.local:3000/admin/application_settings/roles_and_permissions/new
  3. Ensure no permissions are displayed until you select a base role
  4. Ensure the count of selected permissions includes those inherited from the base role
  5. Ensure you cannot unselect permissions inherited from the base role
Edited by Lee Tickett

Merge request reports