Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

chore: remove stale authz todo comments in project-router (#6036)

Kathir Eswaran7b7ab69d4eee
diff --git a/packages/project/src/trpc/project-router.ts b/packages/project/src/trpc/project-router.ts
index cf3702b19a..ec7ad5ca6b 100644
--- a/packages/project/src/trpc/project-router.ts
+++ b/packages/project/src/trpc/project-router.ts
@@ -20,14 +20,12 @@ export const projectRouter = router({
})
)
.mutation(async ({ input, ctx }) => {
- // @todo pass ctx for authorization
return await projectApi.rename(input, ctx);
}),
delete: procedure
.input(z.object({ projectId: z.string() }))
.mutation(async ({ input, ctx }) => {
- // @todo pass ctx for authorization
return await projectApi.markAsDeleted(input.projectId, ctx);
}),