Merge pull request #2873 from RayeEvtuch/website-transfer-permissions

Allow Team Managers to transfer websites to teams
This commit is contained in:
Mike Cao 2024-08-05 10:30:04 -07:00 committed by GitHub
commit 36663bd52d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 }) => {