Skip to content

Commit

Permalink
also allow billing managers to check out
Browse files Browse the repository at this point in the history
  • Loading branch information
sannek committed Nov 22, 2024
1 parent 630ca24 commit 679101d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ export const SelectWorkspace: React.FC<StepProps> = ({

const workspacesEligibleForUpgrade = dashboard.teams
.filter(t =>
// Only teams where you are admin
// Only teams where you are billing manager or admin
t.userAuthorizations.find(
ua =>
ua.userId === user?.id &&
ua.authorization === TeamMemberAuthorization.Admin
(ua.teamManager === true ||
ua.authorization === TeamMemberAuthorization.Admin)
)
)
.filter(
Expand Down

0 comments on commit 679101d

Please sign in to comment.