Skip to content

Commit

Permalink
explicitly allow admin access
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed Jun 20, 2024
1 parent e8892e2 commit 8c11b5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/groups_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def group_members
end

def visible_group_members?
current_user.allowed_in_any_project?(:manage_members) ||
current_user.admin? ||
current_user.allowed_in_any_project?(:manage_members) ||
Group.in_project(Project.allowed_to(current_user, :view_members)).exists?
end

Expand Down

0 comments on commit 8c11b5a

Please sign in to comment.