Make removal of access rights more robust.
[lgpl/argeo-commons.git] / org.argeo.jcr / src / org / argeo / jcr / JcrUtils.java
index 79ae6cf62555afa9be184e8c80e431e654c46433..d66293d9652c4542713f98e4fd2ca841d6eff484 100644 (file)
@@ -1468,6 +1468,8 @@ public class JcrUtils {
                // the new access control list must be applied otherwise this call:
                // acl.removeAccessControlEntry(ace); has no effect
                acm.setPolicy(path, acl);
+               session.refresh(true);
+               session.save();
        }
 
        /*