Hide the "Clear cache" dropdown from visitors who aren't Owner
What does this MR do and why?
As far as I know, only Group Owners can clear the Dependency Proxy cache (because only users with Owner role can query the API). However, the Clear cache dropdown is still shown in the UI to users with inappropriate permission. This MR addresses that issue
Closes #363270 (closed)
Screenshots or screen recordings
How to set up and validate locally
MR acceptance checklist
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Pham Sy Minh