cancel
Showing results for 
Search instead for 
Did you mean: 

Adding ACE doesn't work

jtorres
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

jtorres
Champ in-the-making
Champ in-the-making
I've detected the trouble, is my function updateContent since with the webclient the username can modify the file.

P.D.: ok, solved.