Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 03:55 AM
Hi,
I want to restrict access to records and want the user only see the records where he is requester.
requester is a reference field from another table.
I tried doing it via read ACL and given following condition = but its not working
answer = false;
var gr = new GlideRecord('tablename');
gr.addQuery('requester',gs.getUserID());
gr.query();
while(gr.next())
{
answer = true;
}
I want to show the only records where the user is requester.
Can you please suggest how to do it?
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 03:57 AM
Hi,
Use this as the script on ACL
answer = false;
if(current.requester == gs.getUserID();
{
answer = true;
}
-Anurag
-Anurag
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 03:57 AM
Hi,
Use this as the script on ACL
answer = false;
if(current.requester == gs.getUserID();
{
answer = true;
}
-Anurag
-Anurag