Allow team managers to transfer websites to teams

This commit is contained in:
Raye Evtuch committed 2024-08-04 20:31:53 -05:00
1 parent b006747a45
commit 0988808b75
3 files changed
+8 -3

No files matched your search

@@ -71,7 +71,7 @@ export function WebsiteTransferForm({
{result.data
.filter(({ teamUser }) =>
teamUser.find(
({ role, userId }) => role === ROLES.teamOwner && userId === user.id,
({ role, userId }) => [ ROLES.teamOwner, ROLES.teamManager ].includes(role) && userId === user.id,
),
)
.map(({ id, name }) => {