Skip to content

Fix custom role name for admin user views

What does this MR do and why?

We have 2 places in the app where a user's assigned role is shown. In these places, when a custom role is assigned to the user, it was incorrectly showing the standard role rather than the custom role. This MR fixes it by showing the custom role, and also adds a Custom role badge.

Admin view user's group and project list:

Before After
ksnip_20240726-161238 ksnip_20240726-160934

Groups list

Before After
ksnip_20240726-161146 ksnip_20240726-161058

Note that groups list doesn't show the Custom role badge by design.

How to set up and validate locally

Follow this video guide:

2024-07-26_16-22-42

Related to #464338

Edited by Daniel Tian

Merge request reports

Loading