Skip to content

Commit

Permalink
feat: geef feut strafbak wanneer hij naar maluspunten gaat. fixes #408
Browse files Browse the repository at this point in the history
  • Loading branch information
Nierot committed Nov 13, 2024
1 parent ee907e6 commit 4986219
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/routes/(app)/maluspunten/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ export const load = (async ({ locals }) => {
const ok = isMember(locals.user)

if (!ok) {
return error(403)
await db.strafbak.create({
data: {
receiverId: locals.user.id,
reason: 'Feutneus denkt dat hij de maluspunten kan bekijken 🤨',
location: 'Maluspunten',
},
})

return error(444)
}

return {
Expand Down

0 comments on commit 4986219

Please sign in to comment.