increase access rights for publish into testing repo
This commit is contained in:
parent
a01661abaf
commit
264462afc6
|
@ -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_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([: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|
|
can([:create, :rerun_tests], BuildList) {|build_list|
|
||||||
build_list.project.is_package &&
|
build_list.project.is_package &&
|
||||||
can?(:write, build_list.project) &&
|
can?(:write, build_list.project) &&
|
||||||
|
|
Loading…
Reference in New Issue