Skip to content
Snippets Groups Projects
Commit 73c2f5d5 authored by S.Leipold's avatar S.Leipold Committed by Benjamin Ulrich
Browse files

1048321 Berechtigungen greifen nicht bei Entity-Actions - fixed a bug where...

1048321 Berechtigungen greifen nicht bei Entity-Actions - fixed a bug where creating permissions on entity actions was not possible
parent d0b625e2
No related branches found
No related tags found
No related merge requests found
...@@ -501,13 +501,14 @@ function PermissionUtil () {} ...@@ -501,13 +501,14 @@ function PermissionUtil () {}
if (pActionId != null & pActionId != "" && pActionId != undefined && actionNotExists) { if (pActionId != null & pActionId != "" && pActionId != undefined && actionNotExists) {
actionId = pActionId; actionId = pActionId;
} else { } 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) { if (db.insertData(table, cols, null, vals, alias) == 0) {
return null; return null;
} }
return actionId; return newActionId;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment