Skip to content
Snippets Groups Projects

Add `admin_runners` custom role permission

Merged mo khan requested to merge mokhax/442851/admin_runners into master
3 files
+ 7
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -332,7 +332,6 @@ module ProjectPolicy
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(: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