fix default global check

This commit is contained in:
Tore S. Loenoey 2023-11-23 12:09:18 +01:00 committed by Tore Stendal Lønøy
parent f42a1b0be4
commit 22fee07f88
No known key found for this signature in database

View file

@ -578,7 +578,7 @@ func shouldApplyGlobalAuth(input interface{}, globalExternalAuthURL string, c in
return false
}
if (location.ExternalAuth.URL == "") && (globalExternalAuthURL != "") && (cfg.GlobalExternalAuth.DefaultEnable) {
if (location.ExternalAuth.URL == "") && (globalExternalAuthURL != "") && (cfg.GlobalExternalAuth.DefaultEnable) || (location.EnableGlobalAuth) {
return true
}