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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a89d6d14
Commit
a89d6d14
authored
Dec 03, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add authorization to new branch/tag pages.
parent
6689224a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/projects/branches_controller.rb
app/controllers/projects/branches_controller.rb
+1
-1
app/controllers/projects/tags_controller.rb
app/controllers/projects/tags_controller.rb
+1
-1
No files found.
app/controllers/projects/branches_controller.rb
View file @
a89d6d14
...
@@ -3,7 +3,7 @@ class Projects::BranchesController < Projects::ApplicationController
...
@@ -3,7 +3,7 @@ class Projects::BranchesController < Projects::ApplicationController
# Authorize
# Authorize
before_action
:require_non_empty_project
before_action
:require_non_empty_project
before_action
:authorize_download_code!
before_action
:authorize_download_code!
before_action
:authorize_push_code!
,
only:
[
:create
,
:destroy
]
before_action
:authorize_push_code!
,
only:
[
:
new
,
:
create
,
:destroy
]
def
index
def
index
@sort
=
params
[
:sort
]
||
'name'
@sort
=
params
[
:sort
]
||
'name'
...
...
app/controllers/projects/tags_controller.rb
View file @
a89d6d14
...
@@ -2,7 +2,7 @@ class Projects::TagsController < Projects::ApplicationController
...
@@ -2,7 +2,7 @@ class Projects::TagsController < Projects::ApplicationController
# Authorize
# Authorize
before_action
:require_non_empty_project
before_action
:require_non_empty_project
before_action
:authorize_download_code!
before_action
:authorize_download_code!
before_action
:authorize_push_code!
,
only:
[
:create
]
before_action
:authorize_push_code!
,
only:
[
:
new
,
:
create
]
before_action
:authorize_admin_project!
,
only:
[
:destroy
]
before_action
:authorize_admin_project!
,
only:
[
:destroy
]
def
index
def
index
...
...
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