Apply new policy once defined, otherwise the call to clearAccessControList has no...
authorBruno Sinou <bsinou@argeo.org>
Fri, 27 Mar 2015 14:50:43 +0000 (14:50 +0000)
committerBruno Sinou <bsinou@argeo.org>
Fri, 27 Mar 2015 14:50:43 +0000 (14:50 +0000)
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

index 3b546684a544aba79d81757d169a318294a27ab8..c42f84ece40c01decd7c025f0ae3026c4a8cda0a 100644 (file)
@@ -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);
        }
 
        /*