forked from sk1982/actaeon
fix: show all teams to owner
This commit is contained in:
parent
607c5cacf8
commit
5b1e8ffc26
@ -68,6 +68,9 @@ export const getTeams = async ({ showUnlisted, uuids, user }:
|
|||||||
.as('userCount'),
|
.as('userCount'),
|
||||||
eb('team.uuid', '=', user?.team!).as('isMember'),
|
eb('team.uuid', '=', user?.team!).as('isMember'),
|
||||||
eb.or([
|
eb.or([
|
||||||
|
...(hasPermission(user?.permissions, UserPermissions.OWNER) ? [
|
||||||
|
eb.lit(true)
|
||||||
|
] : []),
|
||||||
eb('team.visibility', '=', Visibility.PUBLIC),
|
eb('team.visibility', '=', Visibility.PUBLIC),
|
||||||
eb('team.uuid', '=', user?.team!),
|
eb('team.uuid', '=', user?.team!),
|
||||||
...(showUnlisted ? [
|
...(showUnlisted ? [
|
||||||
|
Loading…
Reference in New Issue
Block a user