From 4285acea0b33cd3b175112b81cd79ef5051519fa Mon Sep 17 00:00:00 2001 From: ulferts Date: Thu, 20 Jun 2024 18:04:41 +0200 Subject: [PATCH] explicitly allow admin access --- app/controllers/groups_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 778ddd6082c6..85384f3b0cab 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -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