[xwiki-devs] Dynamically set rights over document
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-tp603... Sent from the XWiki- Dev mailing list archive at Nabble.com.
I'm probably not being clear about my doubt.. It would be great if someone could say something! Regards, Luís Braga -- View this message in context: http://xwiki.475771.n2.nabble.com/Dynamically-set-rights-over-document-tp603... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hello Luis, Please, post this question on the users list. The devs list is for topics about the development of XWiki software. Also, you would probably get more answers on the users list. Jerome. On Thu, Feb 24, 2011 at 4:26 PM, Lukapt <[email protected]> wrote:
I'm probably not being clear about my doubt.. It would be great if someone could say something!
Regards, Luís Braga -- View this message in context: http://xwiki.475771.n2.nabble.com/Dynamically-set-rights-over-document-tp603... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Jerome Velociter -
Lukapt