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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user