summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-08 12:12:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-08 12:12:41 +0000
commit8fea353b907d1fd571f5450a757cafee73cfbfd0 (patch)
tree38cd1edddd3de94d6f743029c164fab5691a7241 /app/models/group.rb
parentdb5097a28b061ef273a058aa64845c79635ea4e7 (diff)
downloadgitlab-ce-8fea353b907d1fd571f5450a757cafee73cfbfd0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 9d92e01df3a..1445e71b0bc 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -635,11 +635,11 @@ class Group < Namespace
# 4. They belong to an ancestor group
def direct_and_indirect_users
User.from_union([
- User
- .where(id: direct_and_indirect_members.select(:user_id))
- .reorder(nil),
- project_users_with_descendants
- ])
+ User
+ .where(id: direct_and_indirect_members.select(:user_id))
+ .reorder(nil),
+ project_users_with_descendants
+ ])
end
# Returns all users (also inactive) that are members of the group because:
@@ -649,11 +649,11 @@ class Group < Namespace
# 4. They belong to an ancestor group
def direct_and_indirect_users_with_inactive
User.from_union([
- User
- .where(id: direct_and_indirect_members_with_inactive.select(:user_id))
- .reorder(nil),
- project_users_with_descendants
- ])
+ User
+ .where(id: direct_and_indirect_members_with_inactive.select(:user_id))
+ .reorder(nil),
+ project_users_with_descendants
+ ])
end
def users_count