diff options
Diffstat (limited to 'app/controllers/projects/imports_controller.rb')
-rw-r--r-- | app/controllers/projects/imports_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/imports_controller.rb b/app/controllers/projects/imports_controller.rb index deba71c9dd3..9bed12fd151 100644 --- a/app/controllers/projects/imports_controller.rb +++ b/app/controllers/projects/imports_controller.rb @@ -5,10 +5,10 @@ class Projects::ImportsController < Projects::ApplicationController include ImportUrlParams # Authorize - before_action :authorize_admin_project!, only: [:new, :create] + before_action :authorize_admin_project!, except: :show before_action :require_namespace_project_creation_permission, only: :show - before_action :require_no_repo, only: [:new, :create] - before_action :redirect_if_progress, only: [:new, :create] + before_action :require_no_repo, except: :show + before_action :redirect_if_progress, except: :show before_action :redirect_if_no_import, only: :show def new |