Apply new policy once defined, otherwise the call to clearAccessControList has no...
[lgpl/argeo-commons.git] / org.argeo.server.jcr / src / org / argeo / jcr / JcrUtils.java
index 3b546684a544aba79d81757d169a318294a27ab8..c42f84ece40c01decd7c025f0ae3026c4a8cda0a 100644 (file)
@@ -1393,6 +1393,9 @@ public class JcrUtils implements ArgeoJcrConstants {
                                acl.removeAccessControlEntry(ace);
                        }
                }
+               // the new access control list must be applied otherwise this call:
+               // acl.removeAccessControlEntry(ace); has no effect
+               acm.setPolicy(path, acl);
        }
 
        /*