diff --git a/src/views/SimproV2/ProjectType/index.js b/src/views/SimproV2/ProjectType/index.js
index 5d5b37c..0e23258 100644
--- a/src/views/SimproV2/ProjectType/index.js
+++ b/src/views/SimproV2/ProjectType/index.js
@@ -11,6 +11,8 @@ import { NotificationContainer, NotificationManager } from 'react-notifications'
import { PROJECT_TYPE_ADD, PROJECT_TYPE_EDIT, PROJECT_TYPE_DELETE, PROJECT_TYPE_SEARCH, COMPANY_MANAGEMENT_LIST } from '../../../const/ApiConst';
import { Pagination, Button, Tooltip, Table } from 'antd';
import { useTranslation } from 'react-i18next';
+import { checkActMenup } from '../../../const/CustomFunc.js';
+import { useLocation } from "react-router-dom";
const ProjectType = ({ params, ...props }) => {
@@ -27,6 +29,7 @@ const ProjectType = ({ params, ...props }) => {
hierarchy = props.hierarchy;
user_name = props.user_name;
}
+ const location = useLocation()
const HEADER = {
headers: {
"Content-Type": "application/json",
@@ -353,10 +356,20 @@ const ProjectType = ({ params, ...props }) => {
className: 'nowrap',
render: (text, record) => <>
- handleDelete(text.id)}>
+ {
+ checkActMenup(location.pathname, 'delete') ?
+ handleDelete(text.id)}>
+ :
+ null
+ }
- handleEdit(text)}>
+ {
+ checkActMenup(location.pathname, 'update') ?
+ handleEdit(text)}>
+ :
+ null
+ }
{" "}
handleDialogIg(text.id)}>
@@ -430,7 +443,12 @@ const ProjectType = ({ params, ...props }) => {
+ {
+ checkActMenup(location.pathname, 'create') ?
+ :
+ null
+ }