mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 01:01:20 +10:00
feat(acls): added backend acls
This commit is contained in:
@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user