From db027f3614d933402c0dd0ae0fbda712f1bdda03 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@jgoderbauer2.aditosoftware.local> Date: Tue, 3 Dec 2019 12:45:55 +0000 Subject: [PATCH] person_entity: grantDelete -> added comment (cherry picked from commit 2a4565c1917b445d7bfa7b64948bc6cd548db98c) --- entity/Person_entity/grantDeleteProcess.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entity/Person_entity/grantDeleteProcess.js b/entity/Person_entity/grantDeleteProcess.js index 827f19abd10..676ab475747 100644 --- a/entity/Person_entity/grantDeleteProcess.js +++ b/entity/Person_entity/grantDeleteProcess.js @@ -5,7 +5,8 @@ import("Document_lib"); import("system.vars"); import("system.result"); -// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix +// TODO: #1 Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix +// TODO: #2 add request for the use-case: Is the person contact an employee? -> no grant to delte! //result.string(!DocumentUtil.hasDocuments("CONTACT", null, vars.get("$field.CONTACTID")) // && !TaskUtils.hasTasks(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId()) // && !ActivityUtils.hasActivities(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId())); \ No newline at end of file -- GitLab