Commit 74650b28 authored by Ahmad Sherif's avatar Ahmad Sherif

Change personal projects access level to master in User#project_authorizations_union

So that it matches the same access given in
Projects::CreateService#after_create_actions
parent 4262687a
...@@ -926,7 +926,7 @@ class User < ActiveRecord::Base ...@@ -926,7 +926,7 @@ class User < ActiveRecord::Base
# Returns a union query of projects that the user is authorized to access # Returns a union query of projects that the user is authorized to access
def project_authorizations_union def project_authorizations_union
relations = [ 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, groups_projects.select_for_project_authorization,
projects.select_for_project_authorization, projects.select_for_project_authorization,
groups.joins(:shared_projects).select_for_project_authorization groups.joins(:shared_projects).select_for_project_authorization
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment