Skip to content

Hide the "Clear cache" dropdown from visitors who aren't Owner

Pham Sy Minh requested to merge shelld3v/gitlab:hide-clear-cache-dropdown into master

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

Edited by Pham Sy Minh

Merge request reports