diff --git a/src/ui/pages/container/Label-Studio/LSF.jsx b/src/ui/pages/container/Label-Studio/LSF.jsx index 62f542de2..f364cdd4c 100644 --- a/src/ui/pages/container/Label-Studio/LSF.jsx +++ b/src/ui/pages/container/Label-Studio/LSF.jsx @@ -145,6 +145,9 @@ const filterAnnotations = ( } } else if([4, 5, 6].includes(user.role)) { filteredAnnotations = annotations.filter((a) => a.annotation_type === 1); + disable = true; + setDisableBtns(true); + disableSkip = true; } return [filteredAnnotations, disable, disableSkip]; }; @@ -321,7 +324,8 @@ const LabelStudioWrapper = ({ ]; } - if(disableLSFControls) setAutoSave(false); + if(disableLSFControls || !taskData?.annotation_users?.some( + (user) => user === userData.id)) setAutoSave(false); if (rootRef.current) { if (lsfRef.current) { diff --git a/src/ui/pages/container/Label-Studio/ReviewLSF.jsx b/src/ui/pages/container/Label-Studio/ReviewLSF.jsx index eb2730d50..9fdb365b9 100644 --- a/src/ui/pages/container/Label-Studio/ReviewLSF.jsx +++ b/src/ui/pages/container/Label-Studio/ReviewLSF.jsx @@ -191,6 +191,8 @@ const filterAnnotations = ( } } else if([4, 5, 6].includes(user.role)) { filteredAnnotations = annotations.filter((a) => a.annotation_type === 2); + disable = true; + setDisableBtns(true); disableSkip = true; } return [filteredAnnotations, disable, disableSkip]; diff --git a/src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx b/src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx index 84f2e3499..e1477cb4a 100644 --- a/src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx +++ b/src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx @@ -225,6 +225,7 @@ const LabelStudioWrapper = ({ let interfaces = []; if (predictions == null) predictions = []; const [filteredAnnotations, disableSkip] = filterAnnotations(annotations, userData, taskData); + if(disableSkip) setAutoSave(false); if (taskData.task_status === "freezed") { interfaces = [