Skip to content
Snippets Groups Projects
Verified Commit 5f31caa0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix read_group ability

parent b6a93420
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -184,7 +184,7 @@ class Ability
def group_abilities user, group
rules = []
 
if user.admin? || Projects::CollectService.new.execute(user, group: group).any?
if user.admin? || group.users.include?(user) || Projects::CollectService.new.execute(user, group: group).any?
rules << :read_group
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment