mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-08 09:43:42 +01:00
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> {
|
||||
const singleOrgEnabled = policiesEnabledMap.get(PolicyType.SingleOrg) ?? false;
|
||||
if (this.enabled.value && singleOrgEnabled) {
|
||||
if (this.enabled.value && !singleOrgEnabled) {
|
||||
throw new Error(this.i18nService.t('requireSsoPolicyReqError'));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user