Merge branch 'bugfix/car_details_permission' into 'develop'

car details permission

See merge request witel-front-end/rms!39
This commit is contained in:
AmirHossein Mahmoodi
2024-12-09 05:29:09 +00:00
3 changed files with 9 additions and 4 deletions

View File

@@ -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;

View File

@@ -7,7 +7,7 @@ import AzmayeshList from "./AzmayeshList";
const AzmayeshPage = () => {
return (
<Stack spacing={1}>
<PageTitle title={"آزمایشات"} />
<PageTitle title={"آزمایشات (OPTS)"} />
<AzmayeshList />
</Stack>
);

View File

@@ -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: [""],
},
];