Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
949947a9
Commit
949947a9
authored
Aug 19, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer `only` over `except` in imports_controller
parent
d795ab07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/imports_controller.rb
app/controllers/projects/imports_controller.rb
+3
-3
No files found.
app/controllers/projects/imports_controller.rb
View file @
949947a9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment