Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2019 01:53 PM
in Fact you don’t need to query the user table at all. I would rewrite your function like this:
var ret = ‘active=true’;
if (!gs.hasRole(‘nhl’)) {
ret += ‘u_contractor=false^manager=javascript:gs.getUserID()’;
}
return ret;