refactor(dock door scanning): fixes and final writes for the intial trial went smooth

This commit is contained in:
2026-06-10 16:26:58 -05:00
parent 706ab8b448
commit 86e1237509
10 changed files with 290 additions and 102 deletions

View File

@@ -24,11 +24,11 @@ export function AppSidebar() {
}),
);
const { data: canReadWarehouse = false } = useQuery(
permissionQuery({
warehouse: ["read"],
}),
);
// const { data: canReadWarehouse = false } = useQuery(
// permissionQuery({
// warehouse: ["read"],
// }),
// );
return (
<Sidebar
@@ -53,8 +53,7 @@ export function AppSidebar() {
{!isLoading &&
settings.filter((n: any) => n.name === "dockDoorScanning")[0]
?.active &&
canReadWarehouse && <WarehouseBar />}
?.active && <WarehouseBar />}
{session &&
(session.user.role === "admin" ||