test(admin): more user stuff to fronend admin stuff

This commit is contained in:
2025-09-26 10:45:20 -05:00
parent 58aedecd4d
commit d9f23e26a3
7 changed files with 170 additions and 46 deletions

View File

@@ -8,6 +8,8 @@ import Nav from "../components/navBar/Nav";
import { ThemeProvider } from "../lib/providers/theme-provider";
import { SidebarProvider } from "../components/ui/sidebar";
import SideBarNav from "../components/navBar/SideBarNav";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
import { userAccess } from "../lib/authClient";
interface RootRouteContext {
queryClient: QueryClient;
@@ -34,6 +36,9 @@ const RootLayout = () => {
</SidebarProvider>
</div>
<Toaster expand richColors closeButton />
{userAccess(null, ["systemAdmin"]) && (
<TanStackRouterDevtools position="bottom-right" />
)}
</div>
</ThemeProvider>
</SessionGuard>