this should work, then we can add back

This commit is contained in:
Michael Freno
2025-12-19 16:09:31 -05:00
parent 14a801887a
commit c2b16c0291
10 changed files with 11 additions and 25 deletions

View File

@@ -1,12 +1,11 @@
import { createSignal, For, Show } from "solid-js";
import { query, createAsync } from "@solidjs/router";
import { getRequestEvent } from "solid-js/web";
import { getPrivilegeLevel } from "~/server/utils";
import { api } from "~/lib/api";
const getAuthState = query(async () => {
"use server";
const { getPrivilegeLevel } = await import("~/server/utils");
const event = getRequestEvent()!;
const privilegeLevel = await getPrivilegeLevel(event.nativeEvent);