Add code to write the updated acl and dataset document back to database after adding permission rules in acl document.
Add code to write the updated acl and dataset document back to database after adding permission rules in acl document.