mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
More org tab permission cleanup
This commit is contained in:
parent
7c98809d1b
commit
0085ef9fca
@ -55,19 +55,21 @@ export class OrganizationLayoutComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get showMembersTab(): boolean {
|
get showMembersTab(): boolean {
|
||||||
return this.organization.canManageUsers;
|
return NavigationPermissionsService.canAccessMembers(this.organization);
|
||||||
}
|
}
|
||||||
|
|
||||||
get showGroupsTab(): boolean {
|
get showGroupsTab(): boolean {
|
||||||
return this.organization.useGroups && this.organization.canManageGroups;
|
return (
|
||||||
|
this.organization.useGroups && NavigationPermissionsService.canAccessGroups(this.organization)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get showReportsTab(): boolean {
|
get showReportsTab(): boolean {
|
||||||
return this.organization.canAccessReports;
|
return NavigationPermissionsService.canAccessReporting(this.organization);
|
||||||
}
|
}
|
||||||
|
|
||||||
get showBillingTab(): boolean {
|
get showBillingTab(): boolean {
|
||||||
return this.organization.canManageBilling;
|
return NavigationPermissionsService.canAccessBilling(this.organization);
|
||||||
}
|
}
|
||||||
|
|
||||||
get reportTabLabel(): string {
|
get reportTabLabel(): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user