mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
11 lines
251 B
TypeScript
11 lines
251 B
TypeScript
import aclManager from "~/server/internal/acls";
|
|
|
|
/**
|
|
* Check if we are an admin/system
|
|
*/
|
|
export default defineEventHandler(async (h3) => {
|
|
const allowed = await aclManager.allowSystemACL(h3, []);
|
|
if (!allowed) return false;
|
|
return true;
|
|
});
|