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