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
This commit is contained in:
parent
4262687a97
commit
74650b280b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue