lint
This commit is contained in:
parent
7ed0586673
commit
7b48c2787e
|
@ -139,16 +139,14 @@ async function hasActivatedConfig(ssoConfigs?: SSOConfigs) {
|
|||
if (!ssoConfigs) {
|
||||
ssoConfigs = await getSSOConfigs()
|
||||
}
|
||||
return !!Object.values(ssoConfigs).find(c => c?.activated)
|
||||
return !!Object.values(ssoConfigs).find(c => c?.activated)
|
||||
}
|
||||
|
||||
async function verifySettingsConfig(config: SettingsInnerConfig) {
|
||||
if (config.isSSOEnforced) {
|
||||
const valid = await hasActivatedConfig()
|
||||
if (!valid) {
|
||||
throw new Error(
|
||||
"Cannot enforce SSO without an activated configuration"
|
||||
)
|
||||
throw new Error("Cannot enforce SSO without an activated configuration")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue