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

Hello,

 

Can you explain further?   Are you saying to hide the variable if it matches the conditions?

 

Thanks,

Chad

I am suggesting to configure catalog client script to lock down variables based on condition as per requirements.

 

Regards,

Sachin

He is trying to make it so that if the item was submitted with that user name in a filed they should not be able to see the ritm.  Locking down the filed would just make it so it is not editable and they would still be able to see the ritm.