cancel
Showing results for 
Search instead for 
Did you mean: 

removePermission not works for ALL users/groups

louise
Champ in-the-making
Champ in-the-making
I would like to remove "Coordinator" permission for ALL users on a Space, but i've got unexpected result, see example and output below (Alfresco 4.0.d Community, default installed SOLR indexer):

Example JavaScript code:
var node = companyhome.childByNamePath("User Homes/louise");permissions = node.getPermissions();print("Before removePermission:");print(permissions);node.removePermission("Coordinator");permissions = node.getPermissions();print("After removePermission:");print(permissions);‍‍‍‍‍‍‍‍‍‍‍‍‍

Output:
Before removePermission:0 : ALLOWED;louise;All1 : ALLOWED;ROLE_OWNER;All2 : ALLOWED;abeecher;CoordinatorAfter removePermission:0 : ALLOWED;louise;All1 : ALLOWED;ROLE_OWNER;All2 : ALLOWED;abeecher;Coordinator‍‍‍‍‍‍‍‍‍‍‍
1 REPLY 1

louise
Champ in-the-making
Champ in-the-making
Let see the workaround until we've received a reply: http://louise.hu/poet/?p=5922