Allow team managers to transfer websites to teams

This commit is contained in:
Raye Evtuch
2024-08-04 20:00:45 -05:00
parent b006747a45
commit 0988808b75
3 changed files with 8 additions and 3 deletions

View File

@@ -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 }) => {