Readonly entire record based on certain condition

Hi All,



i need to readonly entire record based on below condition.
on case module there is status dropdown field, if the status is "Cancelled"  "Duplicate" and "Rejected"  entire record should be readonly.


Please note, i have used the ACL approach to achieve this functionality, i already applied the source code and tested, it is working fine.

But the issue is, it is only working with one Status mean if i add another status value in array it is consider only one status value.

below is my code, please check and suggest me something.




i have followed below link which is available on web


https://enricosimonetti.com/powerful-customisations-with-sugars-acl/#google_vignette

i request to all please suggest me how can i can multiple dropdown value to readonly entire record.

Any suggestion would be highly appreciated. 
Thanks in advance


Parents Reply Children