Make removal of access rights more robust.
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 25 Dec 2020 08:08:40 +0000 (09:08 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 25 Dec 2020 08:08:40 +0000 (09:08 +0100)
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();
        }
 
        /*