Merge pull request #871 from warpc/868-more_ability_to_platform_admin
[refs #868] add ability to create a container to admins(and QA) of the platform
This commit is contained in:
commit
d5382bd210
|
@ -84,7 +84,7 @@ class Ability
|
|||
can(:publish, BuildList) do |build_list|
|
||||
build_list.save_to_repository.publish_without_qa ? can?(:write, build_list.project) : local_admin?(build_list.save_to_platform)
|
||||
end
|
||||
can(:reject_publish, BuildList) do |build_list|
|
||||
can([:reject_publish, :create_container], BuildList) do |build_list|
|
||||
local_admin?(build_list.save_to_platform)
|
||||
end
|
||||
can([:cancel, :create_container], BuildList) {|build_list| can?(:write, build_list.project)}
|
||||
|
|
Loading…
Reference in New Issue