Hi, I'm trying to set rights over a document automatically.
In my wiki i have the "Publication" concept. Each Publication has one or more authors. Each author is an "Researcher" that is directly related to an XWikiUser. What I want to do is to set editing rights only for the authors of that publication. If I add (or remove) an author he should be able (not able) to edit the document. What i thought first was to check and add user rights every time the document was loaded. However this didn't worked because, initially, users don't have rights to add new rights (lol). That doesn't seemed a good practice anyway. What is the best way to do this? Maybe after every change in editing mode, system may apply the rights? How can I do that? Btw, I'm using this snippet to add the user rights: http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights Thanks in advance, Luís Braga -- View this message in context: http://xwiki.475771.n2.nabble.com/Dynamically-set-rights-over-document-tp6036774p6036774.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

