mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-20 19:51:09 +10:00
11 lines
256 B
TypeScript
11 lines
256 B
TypeScript
import aclManager from "~/server/internal/acls";
|
|
|
|
/**
|
|
* Check if we are a setup token
|
|
*/
|
|
export default defineEventHandler(async (h3) => {
|
|
const allowed = await aclManager.allowSystemACL(h3, ["setup"]);
|
|
if (!allowed) return false;
|
|
return true;
|
|
});
|