diff --git a/wms/wipwhole-index-function.php b/wms/wipwhole-index-function.php index 81804787..063f10cd 100644 --- a/wms/wipwhole-index-function.php +++ b/wms/wipwhole-index-function.php @@ -1040,6 +1040,10 @@ function getSaveEstimateInstallData($user_department_id, $role_id) return true; if ($user_department_id == '545' && $role_id == '6') return true; + if ($user_department_id == '312' && $role_id == '3') + return true; + if ($user_department_id == '541' && $role_id == '1') + return true; return false; } @@ -1049,7 +1053,7 @@ function saveInstallData($user_department_id, $role_id) return true; if ($user_department_id == '521' && $role_id == '9') return true; - if ($user_department_id == '542' && in_array($role_id, ['1', '5', '6'])) + if ($user_department_id == '541' && $role_id == '1') return true; if ($user_department_id == '543' && $role_id == '2') return true; diff --git a/wms/wipwhole-renovate-index-function.php b/wms/wipwhole-renovate-index-function.php index 7d615397..4f792455 100644 --- a/wms/wipwhole-renovate-index-function.php +++ b/wms/wipwhole-renovate-index-function.php @@ -1002,7 +1002,7 @@ function getWipwholeChangeButtonStatus($user_department_id) function getSaveEstimateInstallData($user_department_id, $role_id) { - if (in_array($user_department_id, ['50', '501']) && $role_id == '2') + if ($user_department_id == '541' && $role_id == '1') return true; if ($user_department_id == '311' && $role_id == '4') return true;