Commit b71743c4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rename admin_package policy to create_package

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 3604fd38
...@@ -95,7 +95,7 @@ module EE ...@@ -95,7 +95,7 @@ module EE
rule { can?(:developer_access) }.policy do rule { can?(:developer_access) }.policy do
enable :admin_board enable :admin_board
enable :admin_vulnerability_feedback enable :admin_vulnerability_feedback
enable :admin_package enable :create_package
end end
rule { can?(:public_access) }.enable :read_package rule { can?(:public_access) }.enable :read_package
......
...@@ -29,7 +29,7 @@ module API ...@@ -29,7 +29,7 @@ module API
end end
def authorize_create_package! def authorize_create_package!
authorize!(:admin_package, user_project) authorize!(:create_package, user_project)
end end
def extract_format(file_name) def extract_format(file_name)
......
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