Make note creation

This commit is contained in:
2025-10-13 13:49:30 -04:00
parent b1448ac30e
commit 42f13612b1
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { jsonError } from "../../../common.js";
export async function onRequest(context: RequestContext) {
if (!(context.data.current_user?.permissions & (1 << 5)))
return jsonError("Forbidden", 403);
return await context.next();
}