Disable repository blob actions when user doesn't have required permissions
What does this MR do and why?
Disabling the repository blob actions like Edit single file, Open in Web IDE, Edit in pipeline editor, Replace and Delete when user has permission to do such actions.
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
WITH PLANNER ROLE |
WITH PLANNER ROLE |
How to set up and validate locally
- Checkout the branch
- Run gdk locally
- Create new user, give new user planner role on private project
- Try opening any file in that project from new user account
- Notice the blob actions like Edit single file, Open in Web IDE, Edit in pipeline editor, Replace and Delete actions are disabled and tooltip is shown to indicate the user has no permission to modify the file.
Edited by Rinku C