From 77f2cb09d61152b12d84a6f7457dbfbea0efa2fa Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Thu, 7 Nov 2019 15:01:23 +0100 Subject: [PATCH] task: protectionlevel-condition --- entity/Task_entity/recordcontainers/db/conditionProcess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/Task_entity/recordcontainers/db/conditionProcess.js b/entity/Task_entity/recordcontainers/db/conditionProcess.js index 53cd0f2efc9..98ee6c1d37d 100644 --- a/entity/Task_entity/recordcontainers/db/conditionProcess.js +++ b/entity/Task_entity/recordcontainers/db/conditionProcess.js @@ -8,10 +8,10 @@ import("KeywordRegistry_basic"); var cond = newWhere("TASK.KIND", $KeywordRegistry.taskType$task()) var loadNothing = false; +var ownContactId = EmployeeUtils.getCurrentContactId(); if (vars.getString("$param.FilterOnlyOwnTask_param") == "true") { - var ownContactId = EmployeeUtils.getCurrentContactId(); if (ownContactId) cond.andIfSet("TASK.EDITOR_CONTACT_ID", ownContactId); else -- GitLab