From 9d79bae1c87f3ebd4c39f8970d927b6b09d044b2 Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Fri, 29 Oct 2021 18:50:55 +0200 Subject: [PATCH 1/2] When vault is locked also check for personal ownership policy --- src/background/notification.background.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/background/notification.background.ts b/src/background/notification.background.ts index bd8d0115aa0..9dec74e248a 100644 --- a/src/background/notification.background.ts +++ b/src/background/notification.background.ts @@ -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; } From dd7bfcdc12a67d8210639298d89b46ace323840d Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Tue, 2 Nov 2021 10:09:44 +0100 Subject: [PATCH 2/2] Removed unnecessary brackets --- src/background/notification.background.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/background/notification.background.ts b/src/background/notification.background.ts index 9dec74e248a..90311f4e731 100644 --- a/src/background/notification.background.ts +++ b/src/background/notification.background.ts @@ -192,7 +192,7 @@ export default class NotificationBackground { } if (await this.vaultTimeoutService.isLocked()) { - if (!(await this.allowPersonalOwnership())) { + if (!await this.allowPersonalOwnership()) { return; } @@ -210,7 +210,7 @@ export default class NotificationBackground { return; } - if (!(await this.allowPersonalOwnership())) { + if (!await this.allowPersonalOwnership()) { return; }