From 264462afc68562a9dd6925954c99975b9d1a2ee7 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 19 Feb 2015 21:11:13 +0300 Subject: [PATCH] increase access rights for publish into testing repo --- 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 18f0dacaa..5ab023832 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -90,7 +90,7 @@ class Ability # can([:read, :log, :everything, :list], BuildList, read_relations_for_build_lists_and_projects) {|build_list| can? :read, build_list.project} can([:read, :log, :everything, :list], BuildList, read_relations_with_projects('build_lists')) {|build_list| can? :read, build_list.project} - can(:publish_into_testing, BuildList) { |build_list| can?(:create, build_list) && build_list.save_to_platform.main? } + can(:publish_into_testing, BuildList) { |build_list| ( can?(:create, build_list) || can?(:publish, build_list) ) && build_list.save_to_platform.main? } can([:create, :rerun_tests], BuildList) {|build_list| build_list.project.is_package && can?(:write, build_list.project) &&