Merge branch 'bugfix/car_details_permission' into 'develop'
car details permission See merge request witel-front-end/rms!39
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import TestPage from "@/components/dashboard/carDetails";
|
||||
import WithPermission from "@/core/middlewares/withPermission";
|
||||
|
||||
const Page = () => {
|
||||
return <TestPage />;
|
||||
return (
|
||||
<WithPermission permission_name={[""]}>
|
||||
<TestPage />
|
||||
</WithPermission>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
|
||||
@@ -7,7 +7,7 @@ import AzmayeshList from "./AzmayeshList";
|
||||
const AzmayeshPage = () => {
|
||||
return (
|
||||
<Stack spacing={1}>
|
||||
<PageTitle title={"آزمایشات"} />
|
||||
<PageTitle title={"آزمایشات (OPTS)"} />
|
||||
<AzmayeshList />
|
||||
</Stack>
|
||||
);
|
||||
|
||||
@@ -480,7 +480,7 @@ export const pageMenu = [
|
||||
},
|
||||
{
|
||||
id: "azmayesh",
|
||||
label: "آزمایشات",
|
||||
label: "آزمایشات (OPTS)",
|
||||
type: "page",
|
||||
route: "/dashboard/azmayesh",
|
||||
icon: <ScienceIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
@@ -500,6 +500,6 @@ export const pageMenu = [
|
||||
type: "page",
|
||||
route: "/dashboard/car-details",
|
||||
icon: <DriveEtaIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
permissions: ["all"],
|
||||
permissions: [""],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user