mirror of
https://gitea.tendokyu.moe/sk1982/actaeon.git
synced 2026-08-20 02:43:59 -05:00
fix: show all teams to owner
This commit is contained in:
@@ -68,6 +68,9 @@ export const getTeams = async ({ showUnlisted, uuids, user }:
|
||||
.as('userCount'),
|
||||
eb('team.uuid', '=', user?.team!).as('isMember'),
|
||||
eb.or([
|
||||
...(hasPermission(user?.permissions, UserPermissions.OWNER) ? [
|
||||
eb.lit(true)
|
||||
] : []),
|
||||
eb('team.visibility', '=', Visibility.PUBLIC),
|
||||
eb('team.uuid', '=', user?.team!),
|
||||
...(showUnlisted ? [
|
||||
|
||||
Reference in New Issue
Block a user