Commit 949947a9 authored by Illya Klymov's avatar Illya Klymov

Prefer `only` over `except` in imports_controller

parent d795ab07
......@@ -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
......
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