mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
[PM-6645] Update canAccessOrgAdmin helper to consider disabled organizations and owners explicitly (#8220)
This commit is contained in:
parent
e2a543506a
commit
940fd21ac4
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user