fix: ST-609 demo-check toegevoegd aan POST /api/stories/:id/log en POST /api/todos

This commit is contained in:
Janpeter Visser 2026-04-24 16:34:04 +02:00
parent d26d58f664
commit 088d318e51
2 changed files with 6 additions and 0 deletions

View file

@ -28,6 +28,9 @@ export async function POST(
if ('error' in auth) {
return Response.json({ error: auth.error }, { status: auth.status })
}
if (auth.isDemo) {
return Response.json({ error: 'Niet beschikbaar in demo-modus' }, { status: 403 })
}
const { id: storyId } = await params