ACL for assignment_group.parent members

angel_jimenez
Mega Expert

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!

12 REPLIES 12

Hi,

In Name can you select like incident.none?

 

Thanks,
Ashutosh

HI,

Also create on more ACL with same script for incident.*

Thanks,
Ashutosh

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.