Only show admin shortcut when authorized to visit
What does this MR do and why?
This change hides the admin area shortcut when user needs to authenticate to enter admin mode
References
https://gitlab.com/gitlab-org/gitlab/-/issues/567702#note_2781850105
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Turn on the new UI
- Visit
http://127.0.0.1:3000/admin/application_settings/general#js-signin-settingsto Enable Admin Mode - Toggle on and off Admin Mode. Check for the presence of the Admin shortcut in
xlandmdviewports
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.







