Hide delete branch button when user doesn't have permission
What does this MR do and why?
Contributes to #375225 (closed)
Verify user's permissions and hide branch delete button if needed.
Screenshots or screen recordings
Reporter user
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Create a project and add a member with Reporter access level there
- Create a new branch in this project
- Sign in as Reporter, go to Repository > Branches
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin