diff --git a/common/src/models/domain/organization.ts b/common/src/models/domain/organization.ts index 8a682212..70cd0d34 100644 --- a/common/src/models/domain/organization.ts +++ b/common/src/models/domain/organization.ts @@ -181,4 +181,27 @@ export class Organization { get isExemptFromPolicies() { return this.canManagePolicies; } + + get canAccessManageTab(): boolean { + return ( + this.canManageUsers || + this.canViewAllCollections || + this.canViewAssignedCollections || + this.canManageGroups || + this.canManagePolicies || + this.canAccessEventLogs + ); + } + + get canAccessToolsTab(): boolean { + return this.canAccessImportExport || this.canAccessReports; + } + + get canAccessSettingsTab(): boolean { + return this.isOwner; + } + + get canAccessAdminView() { + return this.canAccessManageTab || this.canAccessToolsTab || this.canAccessSettingsTab; + } }