The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Hi everyone..I have written ACL for restricting write access on incident state field so that this field should be accessible only if state is not one of 'Resolved', 'Closed' or 'Cancelled' and logged in user is a member of 'Assignment Group'

shaveta
Mega Expert

Hi everyone..I have written ACL for restricting write access on incident state field so that this field should be accessible only if state is not one of 'Resolved', 'Closed' or 'Cancelled' and logged in user is a member of 'Assignment Group'. For some reason, it is not working as expected. Below is the screenshot for same.

Also please note that I have actually changed an existing one so at field level I guess there should be no issue.acl_state.png

25 REPLIES 25

My apologies, Pradeep. I dint get this. What exactly do I need to do.


Gurpreet07
Mega Sage

What is the label of state field .... is it Incident Status Code .. Normally State is used.


Yes Gurpreet, client wanted it like this so we changed the label.


Hi Shaveta,



could you share screen captures by turning on the 'security debugger' and impersonating the user in question.


ok ... got it ... you have error in script at .isMemberOf('current.assignment_group');


it will treat it as string , you need to remove quotes ... like following


.isMemberOf(current.assignment_group);