From: Bruno Sinou Date: Fri, 27 Mar 2015 14:50:43 +0000 (+0000) Subject: Apply new policy once defined, otherwise the call to clearAccessControList has no... X-Git-Tag: argeo-commons-2.1.30~286 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=06b0f0b1ec751e6324496517cb1c4975c9ee0ef8;p=lgpl%2Fargeo-commons.git Apply new policy once defined, otherwise the call to clearAccessControList has no effect git-svn-id: https://svn.argeo.org/commons/trunk@8042 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.server.jcr/src/org/argeo/jcr/JcrUtils.java b/org.argeo.server.jcr/src/org/argeo/jcr/JcrUtils.java index 3b546684a..c42f84ece 100644 --- a/org.argeo.server.jcr/src/org/argeo/jcr/JcrUtils.java +++ b/org.argeo.server.jcr/src/org/argeo/jcr/JcrUtils.java @@ -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); } /*