refactor(dock door scanning): fixes and final writes for the intial trial went smooth
This commit is contained in:
@@ -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" ||
|
||||
|
||||
Reference in New Issue
Block a user