summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-12 15:06:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-12 15:06:26 +0000
commit69944ffb68788d190e81ff7e33db5dcb6c903184 (patch)
tree4112a1285f186c140749e8410a8a2788b6812500 /app/models/group.rb
parent1b7381e998ff4b33ec8f633766030082e95f10c8 (diff)
downloadgitlab-ce-69944ffb68788d190e81ff7e33db5dcb6c903184.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/group.rb')
-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 71d81289bf5..7496fee0b51 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -126,7 +126,7 @@ class Group < Namespace
def visible_to_user_arel(user)
groups_table = self.arel_table
- authorized_groups = user.authorized_groups.as('authorized')
+ authorized_groups = user.authorized_groups.arel.as('authorized')
groups_table.project(1)
.from(authorized_groups)