feat(permissions): more permissions for accessing via sidbar

This commit is contained in:
2025-03-10 16:17:57 -05:00
parent 22e050ebfa
commit 6c4e14fad3
3 changed files with 33 additions and 11 deletions

View File

@@ -19,7 +19,12 @@ export function AppSidebar() {
<Sidebar collapsible="icon">
<SidebarContent>
<Header />
{moduleActive("production") && <ProductionSideBar />}
{moduleActive("production") && (
<ProductionSideBar
user={user}
moduleID={modules.filter((n) => n.name === "production")[0].module_id as string}
/>
)}
{moduleActive("logistics") && (
<LogisticsSideBar
user={user}