ACL restriction based upon variable.

Chad Wilhelm1
Tera Expert

Hello,

We have a requirement to lock down records (REQ and RITM) to one catalog item Spot Bonus.  Those can view would be those with a manager role as long the manger is not the one who getting the spot bonus. There is a variable called user receiving bonus.  I am having issues restricting the manager from seeing it if they are the user in the variable.  Any assistance is appreciated.

find_real_file.png

 

1 ACCEPTED SOLUTION

Use below script 

if(current.request_item.variables.variablename!= gs.getUserID() )
answer=true;


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

22 REPLIES 22

That worked!   Thanks.

Good to know.  I thought current.variables was for inside the workflow only.

Thanks for your help as well. Appreciate it!

Hello,

How would I restrict the same on Catalog Task. Thanks

find_real_file.png

Try current.request_item.variables..variablename!= gs.getUserID()


Please mark my response as correct and helpful if it helped solved your question.
-Thanks