diff options
author | Nick Thomas <nick@gitlab.com> | 2017-08-25 18:32:06 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-08-25 18:32:06 +0300 |
commit | 0a1160e5d7d8234fa9e88038608a37c0f7fe2b05 (patch) | |
tree | 3b51baebc14c06d380ff59b42c1e4724d0dd9bf0 /app/services/projects/create_service.rb | |
parent | 66e18a128498d6f3fab193a80c6b4f45f2c3d7fc (diff) |
Don't treat gitlab project imports specially in Projects::CreateService
Diffstat (limited to 'app/services/projects/create_service.rb')
-rw-r--r-- | app/services/projects/create_service.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index 68e592d79c3..a0cd52014a2 100644 --- a/app/services/projects/create_service.rb +++ b/app/services/projects/create_service.rb @@ -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) |