From 8ec167f7b5af9fe7501e2747d4f34389ba03df65 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 18 Mar 2024 17:18:05 +0530 Subject: [PATCH] Leader Panel access-issue fix for WAC Leader (#9087) --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 98f2abeb6c..c6b6c01e83 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1344,7 +1344,7 @@ def can_access_board_panel? end def can_access_leader_panel? - admin? || leader_of_any_official_team? + admin? || active_roles.any? { |role| UserRole.is_lead?(role) } end def can_access_senior_delegate_panel?