Commit 0a1160e5 authored by Nick Thomas's avatar Nick Thomas

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

parent 66e18a12
......@@ -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)
......
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