diff --git a/src/authorities.ts b/src/authorities.ts
index 46e56b7..227b0a2 100644
--- a/src/authorities.ts
+++ b/src/authorities.ts
@@ -1,7 +1,14 @@
-export const [VIEW_USER, VIEW_DO, MAINTAIN_USER, VIEW_GROUP, MAINTAIN_GROUP] = [
+export const [VIEW_USER,MAINTAIN_USER, VIEW_GROUP, MAINTAIN_GROUP,
+ TESTING, PROD, PACK, ADMIN, STOCK, Driver] = [
"VIEW_USER",
- "VIEW_DO",
"MAINTAIN_USER",
"VIEW_GROUP",
"MAINTAIN_GROUP",
+ //below auth act as role
+ "TESTING",
+ "PROD",
+ "PACK",
+ "ADMIN",
+ "STOCK",
+ "Driver",
];
diff --git a/src/components/DetailedSchedule/DetailedScheduleSearchView.tsx b/src/components/DetailedSchedule/DetailedScheduleSearchView.tsx
index 7b63578..ddccc5a 100644
--- a/src/components/DetailedSchedule/DetailedScheduleSearchView.tsx
+++ b/src/components/DetailedSchedule/DetailedScheduleSearchView.tsx
@@ -26,7 +26,7 @@ import isToday from 'dayjs/plugin/isToday';
import useUploadContext from "../UploadProvider/useUploadContext";
import { FileDownload, CalendarMonth } from "@mui/icons-material";
import { useSession } from "next-auth/react";
-import { VIEW_USER, VIEW_DO } from "@/authorities";
+import { VIEW_USER } from "@/authorities";
dayjs.extend(isToday);
diff --git a/src/components/NavigationContent/NavigationContent.tsx b/src/components/NavigationContent/NavigationContent.tsx
index 6f9aa00..0abc585 100644
--- a/src/components/NavigationContent/NavigationContent.tsx
+++ b/src/components/NavigationContent/NavigationContent.tsx
@@ -28,12 +28,11 @@ import Logo from "../Logo";
import BugReportIcon from "@mui/icons-material/BugReport";
import {
VIEW_USER,
- VIEW_DO,
MAINTAIN_USER,
VIEW_GROUP,
MAINTAIN_GROUP,
// Add more authorities as needed, e.g.:
- // VIEW_PO, MAINTAIN_PO, VIEW_INVENTORY, etc.
+ TESTING, PROD, PACK, ADMIN, STOCK, Driver
} from "../../authorities";
interface NavigationItem {
@@ -137,7 +136,6 @@ const NavigationContent: React.FC = () => {
label: "Delivery",
path: "",
//requiredAbility: VIEW_DO,
- requiredAbility: VIEW_USER,
children: [
{
icon: ,
@@ -235,6 +233,7 @@ const NavigationContent: React.FC = () => {
icon: ,
label: "Printer Testing",
path: "/testing",
+ requiredAbility: TESTING,
isHidden: false,
},
{