Non-admin users unable to use "Show Workflow" UI Action despite meeting ACL conditions. It displays a blank page.


Description

Non-admin users unable to use "Show Workflow" UI Action despite meeting ACL conditions. It displays a blank page.

The instance is already in Madrid Patch 6/ Patch 7 and it is not related to the PRB1341033 as it is already fixed in Madrid Patch 5

Release or Environment

Madrid Patch 6 and above

Cause

The issue is caused due to the ACL script with the variable 'gr'

Resolution


The issue is not related to the problem ticket PRB1341033 rather it is due to the ACL that had a script with a variable named 'gr'. The parent scope must have a variable with the same name gr and reusing the name in the ACL causes conflicts.

The issue is resolved after changing the variable name.

Another solution is to may be wrap the logic in an immediately invoked function to isolate it's scope.

(ie) to have a function inside the ACL script like this:

(function (){

//code goes here

})();