gs.getUserID() acl for read
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 03:08 AM
Hi Guys
I am having some trouble with ACL. I have two list fields. A watch list and custom list field.
My acl are like this. The only two not working is the list type fields using javascript:gs.getUserID()
Can anyone help?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 05:58 AM
Apologies, it will be:-
answer = true;
You also have to typecast the trainee_list to string using toString().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 06:46 AM
thanks sibhajit
No errors this time, but acl still didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 08:07 AM
got it!!
used current.trainee_list.indexOf(gs.getUserID()) > -1;
thanks for taking time and pointing me in right direction