fix guest actions

This commit is contained in:
Emily
2024-06-19 23:38:22 +02:00
parent c1a15c8fc2
commit 149592394d
9 changed files with 27 additions and 13 deletions

View File

@@ -13,7 +13,7 @@ export default defineEventHandler(async event => {
const { project_id } = getQuery(event);
const hasAccess = await hasAccessToProject(userData.id, project_id as string);
const [hasAccess] = await hasAccessToProject(userData.id, project_id as string);
if (!hasAccess) return setResponseStatus(event, 400, 'No access to project');