Under certain circumstances "Close merge request" button is still active after merge
Summary
The "Close merge request" button is visible for users with "Master" on merged MRs.
Steps to reproduce
- Create a new repository as user A
- Invite another user B as Developer
- As B, create a new branch
- As A, make the new branch the default branch for the repository
- As B, create and merge a new merge request into the new default branch
- As A, observe that "Close merge request" box is still visible on a "Merged" request
Example Project
https://gitlab.com/lyle/mr-weirdness2/merge_requests/2
Incidentally, this is also the case when browsing projects as an admin user.
What is the current bug behavior?
A non-functional "Close merge request" button is visible for some users.
What is the expected correct behavior?
The non-functional "Close merge request" button should not be shown on merged MRs.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com