Merge pull request #2153 from bitwarden/check-for-personal-ownership-when-vault-is-locked

When vault is locked also check for personal ownership policy
This commit is contained in:
Daniel James Smith 2021-11-02 12:20:57 +01:00 committed by GitHub
commit f20a1e7424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -192,6 +192,10 @@ export default class NotificationBackground {
}
if (await this.vaultTimeoutService.isLocked()) {
if (!await this.allowPersonalOwnership()) {
return;
}
this.pushAddLoginToQueue(loginDomain, loginInfo, tab, true);
return;
}
@ -206,7 +210,7 @@ export default class NotificationBackground {
return;
}
if (!(await this.allowPersonalOwnership())) {
if (!await this.allowPersonalOwnership()) {
return;
}