import { getSessionUser } from '$lib/server/auth/session'; import { hasPermission } from '$lib/server/auth/authorization'; import type { LayoutServerLoad } from './$types'; export const load: LayoutServerLoad = async ({ cookies }) => { const user = await getSessionUser(cookies); return { user, isacAccess: await hasPermission(user, 'isac.access') }; };