diff --git a/src/ui/pages/component/Project/MembersTable.jsx b/src/ui/pages/component/Project/MembersTable.jsx
index f4a42f4ab..68530018c 100644
--- a/src/ui/pages/component/Project/MembersTable.jsx
+++ b/src/ui/pages/component/Project/MembersTable.jsx
@@ -529,12 +529,12 @@ const MembersTable = (props) => {
// console.log(rsp_data);
}}
else if(memberOrReviewer === "superchecker"){
- if(pin === "0104"){
+ // if(pin === "0104"){
handleProjectReviewer(elId);
setConfirmationDialog(false);
- }else{
- window.alert("Incorrect pin entered");
- }
+ // }else{
+ // window.alert("Incorrect pin entered");
+ // }
}
};
return (
diff --git a/src/ui/pages/component/Project/TaskTable.jsx b/src/ui/pages/component/Project/TaskTable.jsx
index 1a604cc6b..111548170 100644
--- a/src/ui/pages/component/Project/TaskTable.jsx
+++ b/src/ui/pages/component/Project/TaskTable.jsx
@@ -233,14 +233,14 @@ const TaskTable = (props) => {
const unassignTasks = async () => {
setDeallocateDialog(false);
- if (ProjectDetails?.project_type === "AcousticNormalisedTranscriptionEditing") {
- setSnackbarInfo({
- open: true,
- message: 'The task de-allocation has been disabled for your project',
- variant: "error",
- });
- return
- }
+ // if (ProjectDetails?.project_type === "AcousticNormalisedTranscriptionEditing") {
+ // setSnackbarInfo({
+ // open: true,
+ // message: 'The task de-allocation has been disabled for your project',
+ // variant: "error",
+ // });
+ // return
+ // }
const deallocateObj =
props.type === "annotation"
? new DeallocateTasksAPI(id, selectedFilters.annotation_status)
diff --git a/src/ui/pages/container/Project/DeallocationAnnotatorsAndReviewers.jsx b/src/ui/pages/container/Project/DeallocationAnnotatorsAndReviewers.jsx
index cf023d1c9..96c657aba 100644
--- a/src/ui/pages/container/Project/DeallocationAnnotatorsAndReviewers.jsx
+++ b/src/ui/pages/container/Project/DeallocationAnnotatorsAndReviewers.jsx
@@ -242,8 +242,8 @@ export default function DeallocationAnnotatorsAndReviewers() {
const [password, setPassword] = useState("");
const [pin, setPin] = useState("");
const handleConfirm = async () => {
- if (userLevel === "annotation" || userLevel === "review") {
- const apiObj = new LoginAPI(emailId, password);
+ // if (userLevel === "annotation" || userLevel === "review") {
+ const apiObj = new LoginAPI(emailId,password);
const res = await fetch(apiObj.apiEndPoint(), {
method: "POST",
body: JSON.stringify(apiObj.getBody()),
@@ -256,13 +256,13 @@ export default function DeallocationAnnotatorsAndReviewers() {
window.alert("Invalid credentials, please try again");
console.log(rsp_data);
}
- } else if (userLevel === "superChecker") {
- if (pin === "9327") {
- handleok();
- } else {
- window.alert("Incorrect pin entered");
- }
- }
+ // } else if (userLevel === "superChecker") {
+ // if (pin === "9327") {
+ // handleok();
+ // } else {
+ // window.alert("Incorrect pin entered");
+ // }
+ // }
};
return (
@@ -632,7 +632,7 @@ export default function DeallocationAnnotatorsAndReviewers() {
Are you sure want to Deallocate User Tasks ?
- {(userLevel === "annotation" || userLevel === "review") && setPassword(e.target.value)}
- />}
- {userLevel === "superChecker" &&
+ {/* {userLevel === "superChecker" && setPin(e.target.value)}
- />}
-
+ />} */}