mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Removing the isUserAdmin and just using the canAccessImportExport property (#6822)
This commit is contained in:
@@ -361,7 +361,7 @@ export class ImportComponent implements OnInit, OnDestroy {
|
||||
fileContents,
|
||||
this.organizationId,
|
||||
this.formGroup.controls.targetSelector.value,
|
||||
this.isUserAdmin(this.organizationId)
|
||||
this.canAccessImportExport(this.organizationId)
|
||||
);
|
||||
|
||||
//No errors, display success message
|
||||
@@ -386,6 +386,13 @@ export class ImportComponent implements OnInit, OnDestroy {
|
||||
return this.organizationService.get(this.organizationId)?.isAdmin;
|
||||
}
|
||||
|
||||
private canAccessImportExport(organizationId?: string): boolean {
|
||||
if (!organizationId) {
|
||||
return false;
|
||||
}
|
||||
return this.organizationService.get(this.organizationId)?.canAccessImportExport;
|
||||
}
|
||||
|
||||
getFormatInstructionTitle() {
|
||||
if (this.format == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user