Fix Require SSO Policy prerequisite check (#1163)

This commit is contained in:
Oscar Hinton 2021-08-28 16:27:37 +02:00 committed by GitHub
parent 9c187e9430
commit 1c3488a8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class RequireSsoPolicyComponent extends BasePolicyComponent {
buildRequest(policiesEnabledMap: Map<PolicyType, boolean>): Promise<PolicyRequest> {
const singleOrgEnabled = policiesEnabledMap.get(PolicyType.SingleOrg) ?? false;
if (this.enabled.value && singleOrgEnabled) {
if (this.enabled.value && !singleOrgEnabled) {
throw new Error(this.i18nService.t('requireSsoPolicyReqError'));
}