Disable publish_into_testing for personal platforms

This commit is contained in:
Vokhmin Alexey V 2013-11-12 00:15:03 +04:00
parent 524d967b74
commit 136bd3be27
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ class Ability
cannot :create_container, BuildList, :new_core => false cannot :create_container, BuildList, :new_core => false
cannot(:publish, BuildList) {|build_list| !build_list.can_publish? } cannot(:publish, BuildList) {|build_list| !build_list.can_publish? }
cannot(:publish_into_testing, BuildList) {|build_list| !build_list.can_publish_into_testing? } cannot(:publish_into_testing, BuildList) {|build_list| !build_list.can_publish_into_testing? }
cannot :publish_into_testing, BuildList, :save_to_platform => {:platform_type => 'personal'}
cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build} cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build}