Skip to content

Commit

Permalink
[PM-6645] Update canAccessOrgAdmin helper to consider disabled organi…
Browse files Browse the repository at this point in the history
…zations and owners explicitly (#8220)
  • Loading branch information
shane-melton authored Mar 6, 2024
1 parent e2a5435 commit 940fd21
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 940fd21

Please sign in to comment.