Hide "New issue" button on project "Issues" page from auditor
Summary
New issue button on issues page should not be shown to auditors as they have read-only permissions.
Steps to reproduce
- Create a project
- Log-in as an Auditor
- Navigate to "Project" -> "Issues"
What is the current bug behavior?
Button is shown to Auditors but returns a 404 if clicked
What is the expected correct behavior?
Button should not be shown to Auditors
Relevant logs and/or screenshots
Possible fixes
- Add
show_new_issue_link?(@project)
check to app/views/shared/empty_states/_issues.html.haml#L44
Edited by Peter Hegman