Fix Require SSO Policy prerequisite check (#1163)
This commit is contained in:
parent
9c187e9430
commit
1c3488a8db
|
@ -31,7 +31,7 @@ export class RequireSsoPolicyComponent extends BasePolicyComponent {
|
||||||
|
|
||||||
buildRequest(policiesEnabledMap: Map<PolicyType, boolean>): Promise<PolicyRequest> {
|
buildRequest(policiesEnabledMap: Map<PolicyType, boolean>): Promise<PolicyRequest> {
|
||||||
const singleOrgEnabled = policiesEnabledMap.get(PolicyType.SingleOrg) ?? false;
|
const singleOrgEnabled = policiesEnabledMap.get(PolicyType.SingleOrg) ?? false;
|
||||||
if (this.enabled.value && singleOrgEnabled) {
|
if (this.enabled.value && !singleOrgEnabled) {
|
||||||
throw new Error(this.i18nService.t('requireSsoPolicyReqError'));
|
throw new Error(this.i18nService.t('requireSsoPolicyReqError'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue