From 06b0f0b1ec751e6324496517cb1c4975c9ee0ef8 Mon Sep 17 00:00:00 2001 From: Bruno Sinou Date: Fri, 27 Mar 2015 14:50:43 +0000 Subject: [PATCH] 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 --- org.argeo.server.jcr/src/org/argeo/jcr/JcrUtils.java | 3 +++ 1 file changed, 3 insertions(+) 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); } /* -- 2.30.2