On Thu, May 26, 2011 at 09:19, Vincenzo Brancato <v.brancato(a)procitec.de> wrote:
Hello,
how can I set rights for pages recursively?
I created a new page and set the rights for this page. When I create a new child page,
the child page inherits the rights of the parent page. And this is great.
It's something you did, right ? Because that does not exists in
standard XE as far as I know (parent/children right inheritance I
mean).
But when I change the rights of the parent page, only new pages inherit the new rights.
All existing child pages keep the rights that were set when I created them.
Is there any possibility to set rights recursively? So that changes to the rights of a
parent page can be applied to all child pages of this page?
There is a easy but not so clean way and a pretty hard but cleaner way
on the long run:
* you could write a listener (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loc…)
which, each time a document right is modified, reproduce it's right
configuration to its children documents. You can even add the support
for new child page in the same listener so that you support when a
document parent is changed.
* the hard way is to modify the right system itself so that it look at
document parent right before looking and document space rights. See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Thx
Enzo
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne