16 May
2016
16 May
'16
2:58 p.m.
Still unclear how to do it. I've found this class https://github.com/xwiki/xwiki-platform/blob/2d0bc84e2c6ca0424b55894771ac182... which has getDocument method. But it's unclear how to retrieve an instance of this class. The second problem is that getDocument method and BaseObject.set take XWikiContext instance. I'm trying to call my code on startup, so there is no context. How to do retrieve XWiki object and XWikiContext object? I call it in ApplicationReadyEventListener. -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-grant-Delete-Right-for-all-register... Sent from the XWiki- Dev mailing list archive at Nabble.com.