Commit 5f31caa0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix read_group ability

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b6a93420
...@@ -184,7 +184,7 @@ class Ability ...@@ -184,7 +184,7 @@ class Ability
def group_abilities user, group def group_abilities user, group
rules = [] 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 rules << :read_group
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment