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:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user