This commit is contained in:
Tore S. Loenoey 2023-11-23 12:57:22 +01:00 committed by Tore Stendal Lønøy
parent cdc9029ad0
commit a67865583f
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) || (location.EnableGlobalAuth) {
if (location.ExternalAuth.URL == "") && (globalExternalAuthURL != "") && ((cfg.GlobalExternalAuth.DefaultEnable) && (location.EnableGlobalAuth)) {
return true
}