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:
Vladimir Sharshov 2013-01-30 02:29:20 -08:00
commit d5382bd210
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class Ability
can(:publish, BuildList) do |build_list| 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) build_list.save_to_repository.publish_without_qa ? can?(:write, build_list.project) : local_admin?(build_list.save_to_platform)
end end
can(:reject_publish, BuildList) do |build_list| can([:reject_publish, :create_container], BuildList) do |build_list|
local_admin?(build_list.save_to_platform) local_admin?(build_list.save_to_platform)
end end
can([:cancel, :create_container], BuildList) {|build_list| can?(:write, build_list.project)} can([:cancel, :create_container], BuildList) {|build_list| can?(:write, build_list.project)}