mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Allow team managers to transfer websites to teams
This commit is contained in:
parent
b006747a45
commit
0988808b75
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