The CreatorCon Call for Content is officially open! Get started here.

ACL Help: want to show record to user if current logged in user is in the watch_list field

Geet1
Kilo Explorer

Hi,

I am trying to write an ACL with Read.None & Read.* when current logged in user is added in the watchlist of the security incident form. Logs are not working and not even the ACL.

Please help

find_real_file.png

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi

write

answer = current.getValue('watch_list').include(gs.getUserID());

 

Kind regards
Maik

shloke04
Kilo Patron

@Geet 

Spelling of watch list in your code is incorrect in first line of code. Create both Table and Field Level ACL on Security Incident Table and try the script below to see :

var getWatchList = current.watch_list;
if(getWatchList.indexOf(gs.getUserID())>-1){
	answer = true;
}else{
	answer = false;
}

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke