From 9c9704ce166128b2fecb5efc3ec6cdea0b569c1d Mon Sep 17 00:00:00 2001 From: "S.Leipold" <S.Leipold@sleipold.aditosoftware.local> Date: Wed, 4 Dec 2019 14:33:36 +0100 Subject: [PATCH] #1048321 Berechtigungen greifen nicht bei Entity-Actions - fixed display bug in combination with field permissions --- process/Permission_lib/process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process/Permission_lib/process.js b/process/Permission_lib/process.js index bc56c73e0a..169ff1b1dc 100644 --- a/process/Permission_lib/process.js +++ b/process/Permission_lib/process.js @@ -244,9 +244,9 @@ function PermissionUtil () {} //var sqlStr = "select ENTITY_ID from ASYS_PERMISSIONSET where ASYS_PERMISSIONSETID = '" + pSetId + "'"; //var entityName = db.cell(sqlStr, alias); //sqlStr and entityName got rewritten to sqlBuilder in entityName - var entityName = newSelect("ENTITY_ID", alias) + var entityName = newSelect("ASYS_PERMISSIONSET.ENTITY_ID", alias) .from("ASYS_PERMISSIONSET") - .where("ASYS_PERMISSIONSET.ASYS_PERMISSIONSETID", pSetId) + .whereIfSet("ASYS_PERMISSIONSET.ASYS_PERMISSIONSETID", pSetId) .cell(); var emptyCond = PermissionUtil.getEmptyCondString(entityName); -- GitLab