Misleading tooltip on Health Status sidebar section when the user has no permission to edit it
Summary
While opening previous issue on this repo, I saw the "Edit" link in Health Status while I don't have any reporter/developer permission on this repo. When hovering on it, a tooltip is saying I can't edit it because the issue is closed, which is wrong because:
- the issue is not closed ;
- in fact I don't have permissions to edit this attribute anyway ;
Steps to reproduce
- Look at an issue on a repo you don't have permissions to manipulate Health Status
- Hover on "Edit" link in Health Status sidebar section
- Read the tooltip
Example Project
This one (gitlab-org/gitlab). The screenshot below comes from #273153 (closed) a minute after its creation. The problem appears even as a visitor not logged.
What is the expected correct behavior?
There's should be no edit link (and further no tooltip), like for the other sections I can't edit (Labels, Milestone, etc.)
Relevant logs and/or screenshots
Edited by Maxime Lorant