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
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,7 +6,7 @@ class CiCdController < Groups::ApplicationController
layout 'group_settings'
skip_cross_project_access_check :show
before_action :authorize_admin_group!, except: :show
before_action :authorize_admin_cicd_settings!, only: :show
before_action :authorize_show_ci_cd_settings!, only: :show
before_action :authorize_update_max_artifacts_size!, only: [:update]
before_action :define_variables, only: [:show]
before_action :push_licensed_features, only: [:show]
@@ -47,7 +47,7 @@ def update_auto_devops
private
def authorize_admin_cicd_settings!
def authorize_show_ci_cd_settings!
return if can_any?(current_user, [
:admin_cicd_variables,
:admin_runner
Loading