role_middleware

This commit is contained in:
Yasiu1376
2023-07-24 14:37:43 +03:30
parent c149c697ea
commit 87023c0edc
8 changed files with 86 additions and 24 deletions

View File

@@ -16,18 +16,18 @@ const sidebarMenu = [
role: "all",
},
{
key: "sidebar.passenger-office",
key: "sidebar.passenger-office-chief",
secondary: "secondary.passenger-office",
type: "page",
route: "/dashboard/passenger-office",
route: "/dashboard/passenger-office-chief",
icon: <AirlineSeatReclineNormalIcon />,
selected: false,
role: "passenger_office_chief",
},
{
key: "sidebar.machinary-office",
key: "sidebar.machinary-expert",
type: "page",
route: "/dashboard/machinary-office",
route: "/dashboard/machinary-expert",
icon: <DirectionsCarFilledIcon />,
selected: false,
role: "machinery_expert",
@@ -42,9 +42,9 @@ const sidebarMenu = [
role: "passenger_office_chief",
},
{
key: "sidebar.transportation-assistance",
key: "sidebar.transportation-assistant",
type: "page",
route: "/dashboard/transportation-assistance",
route: "/dashboard/transportation-assistant",
icon: <DirectionsRailwayIcon />,
selected: false,
role: "transportation_assistant",