mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
7 lines
221 B
TypeScript
7 lines
221 B
TypeScript
import aclManager from "~/server/internal/acls";
|
|
|
|
export default defineEventHandler(async (h3) => {
|
|
const user = await aclManager.getUserACL(h3, ["read"]);
|
|
return user ?? null; // Need to specifically return null
|
|
});
|