Fix bug สิทธิ์ PARENT

This commit is contained in:
harid 2026-02-20 17:37:39 +07:00
parent e161335f36
commit b1686e76ec

View file

@ -254,7 +254,7 @@ export class EvaluationController {
// }; // };
// } // }
// } // }
} else if (_data.privilege === "OWNER" || _data.privilege === "ROOT" || _data.privilege === "PARENT") { } else if (/*_data.privilege === "OWNER" ||*/ _data.privilege === "ROOT" /*|| _data.privilege === "PARENT"*/) {
if (orgDna.rootDnaId) { if (orgDna.rootDnaId) {
conditions.push("evaluation.rootDnaId = :root"); conditions.push("evaluation.rootDnaId = :root");
params.root = orgDna.rootDnaId; params.root = orgDna.rootDnaId;