removePermission does not working

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2010 09:22 AM
var btcFolder = companyhome.childrenByXPath("cm:BTC")[0];var outgoingFolder = btcFolder.childrenByXPath("cm:Outgoing")[0];var outgoingDocs = outgoingFolder.getChildren();for(i in outgoingDocs){ var child = outgoingDocs[i]; if(child.getType() == "{http://www.alfresco.org/model/content/1.0}folder") continue; child.setInheritsPermissions(false); child.removePermission("Coordinator", "GROUP_ActiveUsers"); child.save();}
Without save method doesn't work too. With node browser I see
Inherit: true
Assigned Permission To Authority Access
Coordinator GROUP_INTEG ALLOWED
Coordinator GROUP_ActiveUsers ALLOWED
Consumer GROUP_ActiveUsers ALLOWED
What can be the problem?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2010 04:43 PM
Are you sure that the for cycle is executed?
Have you tried to use the Javascript Debugger?
Have you tried to use the Javascript Debugger?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2010 05:36 PM
yes i've tried it and it's cycling as it is expected. I'm using Alfresco 3.0.0 (Stable 1526). I couldn't figure out what the problem is.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2010 10:14 AM
Anybody has no idea?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2010 04:23 AM
I suggest looking through JIRA issues, and maybe raising a new one.
Cheers,
Lista.
Cheers,
Lista.
