diff options
Diffstat (limited to 'app/controllers/import')
-rw-r--r-- | app/controllers/import/gitlab_projects_controller.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/controllers/import/gitlab_projects_controller.rb b/app/controllers/import/gitlab_projects_controller.rb index 1de4c4828d2..d63dd64b728 100644 --- a/app/controllers/import/gitlab_projects_controller.rb +++ b/app/controllers/import/gitlab_projects_controller.rb @@ -1,6 +1,5 @@ class Import::GitlabProjectsController < Import::BaseController before_action :verify_gitlab_project_import_enabled - before_action :verify_project_and_namespace_access def new @namespace_id = project_params[:namespace_id] @@ -36,16 +35,6 @@ class Import::GitlabProjectsController < Import::BaseController project_params[:file].respond_to?(:read) end - def verify_project_and_namespace_access - unless namespace_access? - render_403 - end - end - - def namespace_access? - can?(current_user, :create_projects, Namespace.find(project_params[:namespace_id])) - end - def verify_gitlab_project_import_enabled render_404 unless gitlab_project_import_enabled? end |