|
|
@@ -28,12 +28,11 @@ import Logo from "../Logo"; |
|
|
import BugReportIcon from "@mui/icons-material/BugReport"; |
|
|
import BugReportIcon from "@mui/icons-material/BugReport"; |
|
|
import { |
|
|
import { |
|
|
VIEW_USER, |
|
|
VIEW_USER, |
|
|
VIEW_DO, |
|
|
|
|
|
MAINTAIN_USER, |
|
|
MAINTAIN_USER, |
|
|
VIEW_GROUP, |
|
|
VIEW_GROUP, |
|
|
MAINTAIN_GROUP, |
|
|
MAINTAIN_GROUP, |
|
|
// Add more authorities as needed, e.g.: |
|
|
// Add more authorities as needed, e.g.: |
|
|
// VIEW_PO, MAINTAIN_PO, VIEW_INVENTORY, etc. |
|
|
|
|
|
|
|
|
TESTING, PROD, PACK, ADMIN, STOCK, Driver |
|
|
} from "../../authorities"; |
|
|
} from "../../authorities"; |
|
|
|
|
|
|
|
|
interface NavigationItem { |
|
|
interface NavigationItem { |
|
|
@@ -137,7 +136,6 @@ const NavigationContent: React.FC = () => { |
|
|
label: "Delivery", |
|
|
label: "Delivery", |
|
|
path: "", |
|
|
path: "", |
|
|
//requiredAbility: VIEW_DO, |
|
|
//requiredAbility: VIEW_DO, |
|
|
requiredAbility: VIEW_USER, |
|
|
|
|
|
children: [ |
|
|
children: [ |
|
|
{ |
|
|
{ |
|
|
icon: <RequestQuote />, |
|
|
icon: <RequestQuote />, |
|
|
@@ -235,6 +233,7 @@ const NavigationContent: React.FC = () => { |
|
|
icon: <BugReportIcon />, |
|
|
icon: <BugReportIcon />, |
|
|
label: "Printer Testing", |
|
|
label: "Printer Testing", |
|
|
path: "/testing", |
|
|
path: "/testing", |
|
|
|
|
|
requiredAbility: TESTING, |
|
|
isHidden: false, |
|
|
isHidden: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|