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