Skip to content

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
Screenshot_2022-11-02_at_17.22.11 Screenshot_2022-11-02_at_17.22.31

How to set up and validate locally

  1. Create a project and add a member with Reporter access level there
  2. Create a new branch in this project
  3. 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.

Edited by Vasilii Iakliushin

Merge request reports