Hello,
AFAIK, XWiki APIs should be public wrappers around a hidden
full-fledged java object, which can only be accessed directly by PR
users. Certainly, this is not the case with plugins, which return the
inner Plugin object without any check.
I'd propose to change this method, so that it behaves as all the other
API classes, and checks for programming rights before returning this
object. Is there any reason why this change shouldn't be performed?
Sergiu
--
http://purl.org/net/sergiu