Don't treat gitlab project imports specially in Projects::CreateService

This commit is contained in:
Nick Thomas 2017-08-25 16:32:06 +01:00
parent 66e18a1284
commit 0a1160e5d7

View file

@ -106,10 +106,8 @@ module Projects
# project immediately after this request completes), and any other affected
# users in the background
def setup_authorizations
group = @project.group
group&.refresh_members_authorized_projects(blocking: false)
if group || @project.gitlab_project_import?
if @project.group
@project.group.refresh_members_authorized_projects(blocking: false)
current_user.refresh_authorized_projects
else
@project.add_master(@project.namespace.owner, current_user: current_user)