1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-6645] Update canAccessOrgAdmin helper to consider disabled organizations and owners explicitly (#8220)

This commit is contained in:
Shane Melton
2024-03-06 08:03:52 -08:00
committed by GitHub
parent e2a543506a
commit 940fd21ac4

View File

@@ -37,6 +37,10 @@ export function canAccessBillingTab(org: Organization): boolean {
}
export function canAccessOrgAdmin(org: Organization): boolean {
// Admin console can only be accessed by Owners for disabled organizations
if (!org.enabled && !org.isOwner) {
return false;
}
return (
canAccessMembersTab(org) ||
canAccessGroupsTab(org) ||