ACL for assignment_group.parent members
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2019 02:14 AM
Hi community!
We have a requirement to allow read access to incidents for user who opened it, are the caller of record, are on the watch list or belongs to the parent of the assignment_group.
We have the following ACL condition:
if (current.opened_by == gs.getUserID() || current.caller_id == gs.getUserID() || current.watch_list.indexOf(gs.getUserID()) > -1 || gs.getUser().isMemberOf(current.assignment_group.parent)) {answer = true;}
else {answer = false;}
But the last condition is not working (the underlined one), so user who belongs to the parent of the assignment_group are not able to read incident records.
Any idea about what is wrong on the script condition?
Regards!
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 01:19 AM
Hi,
In Name can you select like incident.none?
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 01:21 AM
HI,
Also create on more ACL with same script for incident.*
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 05:42 AM
Hi Ashutosh,
I've created the additional ACL for incident.* with the same script, but I don't know what do you refer with "select like incident.none"???
Regards.
