summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-29 00:29:33 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-29 00:29:33 +0200
commit9f39953eaf5568eb75bd2ecf1bab230bbf13f330 (patch)
treef256b61852cd9f4f39b4b527b8718bfa0f65ef5b /app
parent7b4b3d5f268534c028f55ef1014a84fe6a916cb0 (diff)
downloadgitlab-ce-9f39953eaf5568eb75bd2ecf1bab230bbf13f330.tar.gz
Improve Group#users_with_parents methoddz-nested-group-access
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/models/group.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 50c949d84aa..21c9047c98a 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -199,6 +199,6 @@ class Group < Namespace
end
def users_with_parents
- User.where(id: members_with_parents.pluck(:user_id))
+ User.where(id: members_with_parents.select(:user_id))
end
end