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
No known key found for this signature in database
GPG key ID: 77718E52A66F54B5
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 }) => {