Field level ACL not working as expected??

KM SN
Tera Expert

I want to display a field when and when user have the role that i mentioned in ACL and when logged in user is matches with assigned to field.... remaining time no body shouldn't see the field.

 

what went wrong ? any suggestions?    

 

 

@sushantmalsure 

ManiHouse1_1-1689793802667.png

 

ManiHouse1_0-1689793794285.png

 

 

acl-1.PNGacl-2.PNG

 

 

1 ACCEPTED SOLUTION

sushantmalsure
Mega Sage
Mega Sage

@KM SN 

Update ACL with following script and try.

if(current.assigned_to == gs.getUserID())
answer = true;
else
answer =false;

This should make it work for you as per requriement.

While testing make sure you are testing with user with role you mentioned in ACL

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

View solution in original post

2 REPLIES 2

jMarshal
Mega Sage
Mega Sage

Maybe try "getUserID()" instead of "getuser().getid()" ?

sushantmalsure
Mega Sage
Mega Sage

@KM SN 

Update ACL with following script and try.

if(current.assigned_to == gs.getUserID())
answer = true;
else
answer =false;

This should make it work for you as per requriement.

While testing make sure you are testing with user with role you mentioned in ACL

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure