Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable / hide MR edit blob button if cannot edit. #7886
UI changes on the merge request diff view:
This is the same behavior as for the blob show edit button. Both buttons have been factored out.
The blob show edit button is unchanged.
Before this, there would be a clickable link to a 404 or to edit binary files as text on the page.
Screenshot of disabled Edit link:
This solves half of: https://github.com/gitlabhq/gitlabhq/issues/7310