Fix admin role badge on admin users list/details page for Premium plans
What does this MR do and why?
On the Admin Area -> Overview -> Users list and when viewing a user's details, if a user is assigned a custom admin role, a blue badge is shown with the role name:
| Users list | User details |
|---|---|
![]() |
![]() |
Custom admin roles is an Ultimate-only feature and requires the :custom_admin_roles feature flag be turned on. On Premium plans or when the feature flag was turned off, this badge was still incorrectly showing. This MR removes the badge from showing for these 2 cases.
Note that this is only a display bug. The user is technically still assigned the custom admin role (for example if the instance downgraded the license from Ultimate to Premium), but the role is "inert" and doesn't do anything until the instance is upgraded back to Ultimate.
How to set up and validate locally
Acquire a Premium license following this handbook page, then follow this video guide:
Related to #515410 (closed)

