fix(web): redirect to login (#25254)

This commit is contained in:
Jason Rasmussen
2026-01-13 23:11:14 -05:00
committed by GitHub
parent f194a7ea3e
commit 38f01a6b7d
3 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
import { systemConfigManager } from '$lib/managers/system-config-manager.svelte';
import { authenticate } from '$lib/utils/auth';
import type { LayoutLoad } from './$types';
export const load = (async () => {
export const load = (async ({ url }) => {
await authenticate(url, { admin: true });
await systemConfigManager.init();
}) satisfies LayoutLoad;