feat(acls): added backend acls

This commit is contained in:
DecDuck
2025-02-04 13:15:34 +11:00
parent 256fbd6afa
commit 090d2e6586
70 changed files with 397 additions and 474 deletions

View File

@ -1,4 +1,6 @@
import aclManager from "~/server/internal/acls";
export default defineEventHandler(async (h3) => {
const user = await h3.context.session.getUser(h3);
const user = await aclManager.getUserACL(h3, ["read"]);
return user ?? null; // Need to specifically return null
});