From 73c2f5d549e91fc1a71a00867bccd7bde4818187 Mon Sep 17 00:00:00 2001
From: "S.Leipold" <S.Leipold@sleipold.aditosoftware.local>
Date: Wed, 4 Dec 2019 13:27:40 +0100
Subject: [PATCH] 1048321 Berechtigungen greifen nicht bei Entity-Actions -
 fixed a bug where creating permissions on entity actions was not possible

---
 process/Permission_lib/process.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/process/Permission_lib/process.js b/process/Permission_lib/process.js
index 5a054df59de..0fb21146bde 100644
--- a/process/Permission_lib/process.js
+++ b/process/Permission_lib/process.js
@@ -501,13 +501,14 @@ function PermissionUtil () {}
         if (pActionId != null & pActionId != "" && pActionId != undefined && actionNotExists) {
             actionId = pActionId;
         } else {
-            actionId = util.getNewUUID(); // if same id is already in db -> create new UID
+            newActionId = util.getNewUUID(); // if same id is already in db -> create new UID
         }
-        var vals = [actionId, pParentPermId, pAction];
+        
+        var vals = [newActionId, pParentPermId, pAction];
         if (db.insertData(table, cols, null, vals, alias) == 0) {
             return null;
         }
-        return actionId;
+        return newActionId;
     }
     
     /**
-- 
GitLab