Commit 30f302d2 authored by Robert Schilling's avatar Robert Schilling

Don't check external authorization when disabling the service

parent 842b4d4a
......@@ -7,7 +7,8 @@ module ApplicationSettings
attr_reader :params, :application_setting
def execute
validate_classification_label(application_setting, :external_authorization_service_default_label)
disable_ext_auth = params[:external_authorization_service_enabled].present? && !Gitlab::Utils.to_boolean(params[:external_authorization_service_enabled])
validate_classification_label(application_setting, :external_authorization_service_default_label) unless disable_ext_auth
if application_setting.errors.any?
return false
......
---
title: Don't check external authorization when disabling the service
merge_request: 32102
author: Robert Schilling
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment