Skip to content
Snippets Groups Projects

Add `admin_runners` custom role permission

Merged mo khan requested to merge mokhax/442851/admin_runners into master
2 files
+ 14
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -329,9 +329,10 @@ module ProjectPolicy
enable :admin_push_rules
end
rule { custom_role_enables_admin_runners }.enable(:admin_runners)
rule { custom_role_enables_admin_runners }.enable(*create_read_update_admin_destroy(:runner))
rule { custom_role_enables_admin_runners }.enable(:admin_build)
rule { custom_role_enables_admin_runners }.enable(:create_runner)
rule { custom_role_enables_admin_runners }.enable(:pause_runner)
rule { custom_role_enables_admin_runners }.enable(:read_ci_cd_menu)
condition(:ci_cancellation_maintainers_only, scope: :subject) do
project.ci_cancellation_restriction.maintainers_only_allowed?
Loading