Skip to content

Hide download button on blob viewer

What does this MR do and why?

When a user has read code only access via a custom role, hide the download button on the blob viewer.

Issue: #385935 (closed)

Screenshots or screen recordings

Before After
Screenshot_2024-05-07_at_17.46.07 Screenshot_2024-05-07_at_17.45.47

How to set up and validate locally

As admin:

  1. Create a group, a project within that group and apply the Ultimate license to the group
  2. If SaaS mode is:
  3. Invite a user to the project and assign the new custom role to the user

As project member with the custom role:

  1. Visit http://localhost:3000/${new_group}/${new_project}/-/blob/main/README.md and verify the download button is not visible.
Edited by Alex Buijs

Merge request reports

Loading