mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-20 19:51:09 +10:00
17 lines
506 B
TypeScript
17 lines
506 B
TypeScript
import aclManager from "~/server/internal/acls";
|
|
import { applicationSettings } from "~/server/internal/config/application-configuration";
|
|
|
|
/**
|
|
* Fetch system settings
|
|
*/
|
|
export default defineEventHandler(async (h3) => {
|
|
const allowed = await aclManager.getUserACL(h3, ["settings:read"]);
|
|
if (!allowed) throw createError({ statusCode: 403 });
|
|
|
|
const showGamePanelTextDecoration = await applicationSettings.get(
|
|
"showGamePanelTextDecoration",
|
|
);
|
|
|
|
return { showGamePanelTextDecoration };
|
|
});
|