mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +01:00
Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
parent
88639dfe83
commit
247e14646b
136 changed files with 1395 additions and 516 deletions
|
|
@ -2,7 +2,7 @@ import { z } from 'zod';
|
|||
import { parseRequest } from '@/lib/request';
|
||||
import { json, unauthorized } from '@/lib/response';
|
||||
import { pagingParams, searchParams } from '@/lib/schema';
|
||||
import { canViewAllWebsites } from '@/lib/auth';
|
||||
import { canViewAllWebsites } from '@/validations';
|
||||
import { getWebsites } from '@/queries/prisma/website';
|
||||
import { ROLES } from '@/lib/constants';
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ export async function GET(request: Request) {
|
|||
deletedAt: null,
|
||||
},
|
||||
include: {
|
||||
teamUser: {
|
||||
members: {
|
||||
where: {
|
||||
role: ROLES.teamOwner,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue