Hi all,
I have a plugin that does stuff requiring programming rights. For
example it calls Document.getDocument().
This is fine: the plugin is invoked from a doc saved by someone with
prog rights. The plugin API is passed the XWiki API object obtained
when that document is parsed.
So I can then use that to do: wiki.getDocument(blah).getDocument().
Now I need to do something similar when a document is saved, rather
than when invoked by the user. So I'm implementing
XWikiDocChangeNotificationInterface.notify().
However I don't know how to get an XWiki API object that will return
true for checkProgrammingRights() from my notify implementation.
Assuming this makes sense, does anyone have any ideas? :)
Regards,
Robin