summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-23 12:23:08 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-23 12:23:08 +0000
commitba0d4877934349603e24125864c3a46eba271e0e (patch)
tree3debde710f9d85bc978001c245260ec826c0fe82 /app/models/user.rb
parent6f7ce372921a322c48e659d8382a04895fd29b1f (diff)
parent2ea5ef0ba4ee00b5551b88a6b9a68e045bf4b3f4 (diff)
downloadgitlab-ce-ba0d4877934349603e24125864c3a46eba271e0e.tar.gz
Merge branch 'fix/drop-project-authorized-for-user' into 'master'
Use authorized projects in ProjectTeam Closes #23938 and #23636 See merge request !7586
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 29fb849940a..223d84ba916 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -926,7 +926,7 @@ class User < ActiveRecord::Base
# Returns a union query of projects that the user is authorized to access
def project_authorizations_union
relations = [
- personal_projects.select("#{id} AS user_id, projects.id AS project_id, #{Gitlab::Access::OWNER} AS access_level"),
+ personal_projects.select("#{id} AS user_id, projects.id AS project_id, #{Gitlab::Access::MASTER} AS access_level"),
groups_projects.select_for_project_authorization,
projects.select_for_project_authorization,
groups.joins(:shared_projects).select_for_project_authorization