1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

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

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'));
}