[refs #868] add ability to create a container to admins of the platform

This commit is contained in:
Alexander Machehin 2013-01-30 14:55:09 +06:00
parent 04ae9277e5
commit 18d0af9749
1 changed files with 1 additions and 1 deletions

View File

@ -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)}