- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 12:11 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 12:58 PM
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
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 12:26 PM
Maybe try "getUserID()" instead of "getuser().getid()" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 12:58 PM
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
Regards,Sushant Malsure