mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-21 12:11:09 +10:00
partial: user routes
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
import aclManager from "~/server/internal/acls";
|
||||
|
||||
/**
|
||||
* Fetch user.
|
||||
*/
|
||||
export default defineEventHandler(async (h3) => {
|
||||
const user = await aclManager.getUserACL(h3, ["read"]);
|
||||
return user ?? null; // Need to specifically return null
|
||||
|
||||
Reference in New Issue
Block a user