Disable publish_into_testing for personal platforms
This commit is contained in:
parent
524d967b74
commit
136bd3be27
|
@ -180,6 +180,7 @@ class Ability
|
|||
cannot :create_container, BuildList, :new_core => false
|
||||
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, :save_to_platform => {:platform_type => 'personal'}
|
||||
|
||||
cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build}
|
||||
|
||||
|
|
Loading…
Reference in New Issue