cancel
Showing results for 
Search instead for 
Did you mean: 

Change permission document to group

falcon
Champ in-the-making
Champ in-the-making
Hi,
I have a problem and I need help, please.

I have configured several users and groups in Alfresco. when a user can create a document i give permission to the group of this user for every people who belong to the group can modify or see.
After, this user, or other user of the same group, can sign the document and change the permission to another group, loosing all his permision and old group permissions to read and write.

When I try to change the permissions of one group to another i have a exception in transacction for permissions problems. I´m executing the code as Admin, but not solve the problem.

the code:

//executed as admin
webScriptHelper.getServices().getPermissionService().setPermission(parentDirectory, "GROUP_" + groupNew, "Collaboration", true);
webScriptHelper.getServices().getPermissionService().setPermission(parentDirectory, "GROUP_" + groupOld, "Collaboration", false);

Thanks for your replies
1 REPLY 1

sgomez
Champ in-the-making
Champ in-the-making
I have a similar problem to yours and instead of starting a new thread, I'll just follow this one.  I'll let you know if I find something.  Cheers!