From b1caf7277cd188e78416691f35b7e5627d0953e4 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sat, 16 Aug 2025 12:07:58 +0330 Subject: [PATCH] fixed bug --- .../dashboard/roadSafety/operator/RowActions/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/dashboard/roadSafety/operator/RowActions/index.jsx b/src/components/dashboard/roadSafety/operator/RowActions/index.jsx index 0ccc2bb..0cf2026 100644 --- a/src/components/dashboard/roadSafety/operator/RowActions/index.jsx +++ b/src/components/dashboard/roadSafety/operator/RowActions/index.jsx @@ -9,10 +9,9 @@ import FinishForm from "./FinishForm"; const RowActions = ({ row, mutate }) => { const { data: userPermissions } = usePermissions(); const hasDeletePermission = userPermissions?.includes("delete-safety-and-privacy"); - const hasUpdatePermission = userPermissions?.includes("update-safety-and-privacy"); return ( - {hasUpdatePermission && row.original?.axis_type_id == null && } + {row.original?.axis_type_id == null && } {!row.original.is_finished && ( <> {row.original?.step === 1 && }