Replace write acl
When the environment has the permissions flag set, use permissions to calculate the existing ACL check for write
Edited by Mark Harding
When the environment has the permissions flag set, use permissions to calculate the existing ACL check for write