Users who are not allowed to create groups can see buttons for creating groups
Summary
A user that is not allowed to create groups can still see the buttons in the User Interface for creating/importing groups.
Clicking on this button (when not allowed to create groups) will result in a 404
error.
Steps to reproduce
The following describes behaviour for user18
. It is applicable to the root
user as well.
- Disable a
user18
's ability to create a group - Observe changes for
user18
:
Example Project
What is the current bug behavior?
Buttons for creating/importing groups are rendered
What is the expected correct behavior?
Buttons for creating/importing groups are not rendered
Relevant logs and/or screenshots
See above
Output of checks
Tested this on self managed instance / gdk, but I suspect that it should also be the case for .com
Possible fixes
Indent and prepend app/views/layouts/nav/groups_dropdown/_show.html.haml#L15-20 with - if current_user.can_create_group?
Edited by Nourdin el Bacha