fix(submodules): correction to the role name so its now roles and properly updates

This commit is contained in:
2025-04-29 17:09:56 -05:00
parent 17af3776d1
commit e2152becf7

View File

@@ -24,7 +24,7 @@ const newSubModules = [
description: "Bulk order and Forecast imports",
link: "/dm",
icon: "Truck",
role: ["systemAdmin"],
roles: ["technician", "supervisor", "manager", "admin", "systemAdmin"],
active: false,
subSubModule: [],
},
@@ -34,7 +34,7 @@ const newSubModules = [
description: "",
link: "#",
icon: "Truck",
role: ["systemAdmin"],
roles: ["systemAdmin"],
active: false,
subSubModule: [],
},
@@ -44,7 +44,7 @@ const newSubModules = [
description: "",
link: "/materialHelper/consumption",
icon: "Package",
role: ["technician", "supervisor", "manager", "admin", "systemAdmin"],
roles: ["technician", "supervisor", "manager", "admin", "systemAdmin"],
active: false,
subSubModule: [],
},
@@ -54,7 +54,7 @@ const newSubModules = [
description: "",
link: "/cyclecount",
icon: "Package",
role: ["technician", "supervisor", "manager", "admin", "systemAdmin"],
roles: ["technician", "supervisor", "manager", "admin", "systemAdmin"],
active: false,
subSubModule: [],
},
@@ -64,7 +64,7 @@ const newSubModules = [
description: "Open orders",
link: "/openOrders",
icon: "Truck",
role: [
roles: [
"viewer",
"technician",
"supervisor",
@@ -94,7 +94,7 @@ const newSubModules = [
link: "#", // when link is # this will mean its a button
icon: "ShieldCheck",
active: true,
roles: ["tester", "systemAdmin"],
roles: ["tester", "admin", "systemAdmin"],
subSubModule: [
{
name: "Settings",