for frick sake

This commit is contained in:
Ben
2018-09-14 19:07:47 +01:00
parent 3455bbc14b
commit 7e5f13e114
5 changed files with 49 additions and 7 deletions

View File

@@ -16,9 +16,15 @@ export class NoteController extends ControllerHandler {
let user = req.user || undefined;
if (!creatorid) errors.addError(403, 'Forbidden');
if (!creatorid || !user) errors.addError(403, 'Forbidden');
if (errors.count() > 0) {
errors.endpoint();
next();
return;
}
// what the hecking heck is this code supoased to do you hecking idiot
next();
}