mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Merge pull request #2873 from RayeEvtuch/website-transfer-permissions
Allow Team Managers to transfer websites to teams
This commit is contained in:
commit
36663bd52d
3 changed files with 8 additions and 3 deletions
|
|
@ -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 }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue