removePermission not works for ALL users/groups
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2012 08:36 AM
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:
Output:
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2012 09:35 AM
Let see the workaround until we've received a reply: http://louise.hu/poet/?p=5922
