diff options
-rw-r--r-- | app/controllers/import/gitlab_projects_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/import/gitlab_projects_controller.rb b/app/controllers/import/gitlab_projects_controller.rb index 41b72c33ffe..a4ac55cd2a4 100644 --- a/app/controllers/import/gitlab_projects_controller.rb +++ b/app/controllers/import/gitlab_projects_controller.rb @@ -21,15 +21,11 @@ class Import::GitlabProjectsController < Import::BaseController private def verify_project_and_namespace_access - unless namespace_access? && project_access? + unless namespace_access? render_403 end end - def project_access? - can?(current_user, :admin_project, @project) - end - def namespace_access? current_user.can?(:create_projects, Namespace.find(project_params[:namespace_id])) end |