diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-29 00:29:33 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-29 00:29:33 +0200 |
commit | 9f39953eaf5568eb75bd2ecf1bab230bbf13f330 (patch) | |
tree | f256b61852cd9f4f39b4b527b8718bfa0f65ef5b /app | |
parent | 7b4b3d5f268534c028f55ef1014a84fe6a916cb0 (diff) | |
download | gitlab-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.rb | 2 |
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 |