Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/project_authorizations.rb')
-rw-r--r--lib/gitlab/project_authorizations.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gitlab/project_authorizations.rb b/lib/gitlab/project_authorizations.rb
index 1d7b179baf0..da3f67dde51 100644
--- a/lib/gitlab/project_authorizations.rb
+++ b/lib/gitlab/project_authorizations.rb
@@ -37,9 +37,9 @@ module Gitlab
Namespace
.unscoped
.select([
- links[:project_id],
- least(cte_alias[:access_level], links[:group_access], 'access_level')
- ])
+ links[:project_id],
+ least(cte_alias[:access_level], links[:group_access], 'access_level')
+ ])
.from(cte_alias)
.joins('INNER JOIN project_group_links ON project_group_links.group_id = namespaces.id')
.joins('INNER JOIN projects ON projects.id = project_group_links.project_id')
@@ -79,9 +79,9 @@ module Gitlab
# Sub groups of any groups the user is a member of.
cte << Group.select([
- namespaces[:id],
- greatest(members[:access_level], cte.table[:access_level], 'access_level')
- ])
+ namespaces[:id],
+ greatest(members[:access_level], cte.table[:access_level], 'access_level')
+ ])
.joins(join_cte(cte))
.joins(join_members_on_namespaces)
.except(:order)