Fix styling & alignment issues

This commit is contained in:
NeilClack
2026-01-14 11:20:26 -06:00
parent ef181d42c6
commit 0991d1916b
8 changed files with 52 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
import type { LayoutServerLoad } from "./$types";
import { error } from "@sveltejs/kit";
import { prisma } from "$lib/db";
// const authorizedRoles - Not an admin gate, therefore all authenticated roles are authorized.
export const load: LayoutServerLoad = async ({ locals }) => {
const user = await prisma.user.findUnique({ where: { id: locals.user?.id } });
if (!user) {
throw error(403, "not authorized");
}
}