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 |
---|---|
Groups list
Before | After |
---|---|
Note that groups list doesn't show the Custom role
badge by design.
How to set up and validate locally
Follow this video guide:
Related to #464338
Edited by Daniel Tian