1
0
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:
Shane Melton 2022-07-13 16:01:09 -07:00
parent 7c98809d1b
commit 0085ef9fca

View File

@ -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 {