From 18d0af9749f00a45c92677679c0ecd6ade43a4b5 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 30 Jan 2013 14:55:09 +0600 Subject: [PATCH] [refs #868] add ability to create a container to admins of the platform --- app/models/ability.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 954a43a31..a9db8ed94 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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)}