Also set sso in configure accordingly for oidc

This commit is contained in:
Johannes Zellner
2023-04-21 15:36:05 +02:00
parent bd7e931674
commit 828e77ad80

View File

@@ -1971,7 +1971,7 @@ async function updateApp(app, data, auditSource) {
values.mailboxDomain = app.domain;
}
const hasSso = !!updateConfig.manifest.addons?.proxyAuth || !!updateConfig.manifest.addons?.ldap;
const hasSso = !!updateConfig.manifest.addons?.proxyAuth || !!updateConfig.manifest.addons?.ldap || !!manifest.addons?.oidc;
if (!hasSso && app.sso) values.sso = false; // turn off sso flag, if the update removes sso options
const task = {