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