AnsweredAssumed Answered

Adding ACE doesn't work

Question asked by jtorres on Dec 4, 2006
Latest reply on Dec 4, 2006 by jtorres
Hi again people:

I'm trying to add write permissions to an user, but it doesn't works. Aparently is quite simple, but I suposse I'm forgettin something.  Given a valid reference, this is the code I'm trying:


Predicate predicate = new Predicate(new Reference[]{reference}, null, null);       
ACE[] aces = new ACE[]{new ACE(username,Constants.WRITE,AccessStatus.acepted)};
accessControlService.addACEs(predicate, aces);


It runs with no error, but doesn't make anything. To test this I loggin as the username and execute the following query:


HasPermissionsResult[] permissions = accessControlService.hasPermissions(predicate, new String[]{Constants.WRITE});


And aparently it works fine, since the AccessStatus is "acepted". However I can't modify the content of the file. I've tried even to grant full control access to username but doesn't work too.

:?: Any idea? Thanks.

Outcomes