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
b71743c4
Commit
b71743c4
authored
Aug 14, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename admin_package policy to create_package
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3604fd38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/policies/ee/project_policy.rb
ee/app/policies/ee/project_policy.rb
+1
-1
ee/lib/api/maven_packages.rb
ee/lib/api/maven_packages.rb
+1
-1
No files found.
ee/app/policies/ee/project_policy.rb
View file @
b71743c4
...
...
@@ -95,7 +95,7 @@ module EE
rule
{
can?
(
:developer_access
)
}.
policy
do
enable
:admin_board
enable
:admin_vulnerability_feedback
enable
:
admin
_package
enable
:
create
_package
end
rule
{
can?
(
:public_access
)
}.
enable
:read_package
...
...
ee/lib/api/maven_packages.rb
View file @
b71743c4
...
...
@@ -29,7 +29,7 @@ module API
end
def
authorize_create_package!
authorize!
(
:
admin
_package
,
user_project
)
authorize!
(
:
create
_package
,
user_project
)
end
def
extract_format
(
file_name
)
...
...
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