1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

Improved handling of grantor access to organizations after takeover (#820)

* Add emergency access warning for Owners of orgs

* Add master password policy enforcement

* Only show password policy if taking over an Owner

* Fix linting errors

* Fix code style and typos

* Fix implicit 'any' type

* Get grantor policies in separate api call

* Update jslib
This commit is contained in:
Thomas Rittson
2021-02-12 09:58:22 +10:00
committed by GitHub
parent 9d1b2b9f60
commit f239b0cd34
6 changed files with 43 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ export class EmergencyAccessComponent implements OnInit {
emergencyAccessType = EmergencyAccessType;
emergencyAccessStatusType = EmergencyAccessStatusType;
actionPromise: Promise<any>;
isOrganizationOwner: boolean;
private modal: ModalComponent = null;
@@ -48,6 +49,8 @@ export class EmergencyAccessComponent implements OnInit {
async ngOnInit() {
this.canAccessPremium = await this.userService.canAccessPremium();
const orgs = await this.userService.getAllOrganizations();
this.isOrganizationOwner = orgs.some(o => o.isOwner);
this.load();
}