From 679101d9bf81712ba93e22f6ce1ce86263e78dd5 Mon Sep 17 00:00:00 2001 From: Sanne <17491062+sannek@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:00:09 +0000 Subject: [PATCH] also allow billing managers to check out --- .../app/components/WorkspaceSetup/steps/SelectWorkspace.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app/src/app/components/WorkspaceSetup/steps/SelectWorkspace.tsx b/packages/app/src/app/components/WorkspaceSetup/steps/SelectWorkspace.tsx index 5b515b5fc4b..a058e543631 100644 --- a/packages/app/src/app/components/WorkspaceSetup/steps/SelectWorkspace.tsx +++ b/packages/app/src/app/components/WorkspaceSetup/steps/SelectWorkspace.tsx @@ -23,11 +23,12 @@ export const SelectWorkspace: React.FC = ({ 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(