We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8c1f5b commit cbfd8f4Copy full SHA for cbfd8f4
1 file changed
apps/api/src/routes/v1/websites.ts
@@ -365,16 +365,6 @@ websitesRouter.get('/:id', async (c) => {
365
}
366
367
try {
368
- if (user.role === 'ADMIN') {
369
- const website = await db.query.websites.findFirst({
370
- where: eq(websites.id, id)
371
- });
372
- return c.json({
373
- success: true,
374
- data: website
375
376
- }
377
-
378
const projectIds = await getUserProjectIds(user.id);
379
380
const website = await db.query.websites.findFirst({
0 commit comments