From: Mathieu Baudier Date: Fri, 25 Dec 2020 08:08:40 +0000 (+0100) Subject: Make removal of access rights more robust. X-Git-Tag: argeo-commons-2.1.90~2 X-Git-Url: https://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=93989c5786472b5fad58aec868fcfd1cd07059da Make removal of access rights more robust. --- diff --git a/org.argeo.jcr/src/org/argeo/jcr/JcrUtils.java b/org.argeo.jcr/src/org/argeo/jcr/JcrUtils.java index 79ae6cf62..d66293d96 100644 --- a/org.argeo.jcr/src/org/argeo/jcr/JcrUtils.java +++ b/org.argeo.jcr/src/org/argeo/jcr/JcrUtils.java @@ -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(); } /*