Hello. I'm trying to grant page delete right for all registered users.I'm doing it by running this code in onEvent method of my ApplicationReadyEventListenerif (contextProvider != null) { XWikiContext context = contextProvider.get(); if (context != null) { XWiki xwiki = context.getWiki(); DocumentReference dr = new DocumentReference("xwiki", "XWiki", "XWikiPreferences"); XWikiDocument doc = xwiki.getDocument(dr, context); BaseObject bo = doc.getObject("XWiki.XWikiGlobalRights", true, context); bo.set("groups", "XWiki.XWikiAllGroup", context); bo.set("levels", "view,comment,edit,script,delete", context); bo.set("users", "", context); bo.set("allow", 1, context); xwiki.saveDocument(doc, context); }}It does the job, but causes a new issue. Tree view on my page stops working showing infinite loading whentrying to expand a node. The browser developer tools shows me this exception: https://gist.github.com/edvorg/acff4a58342edfa3485791a7ba57e172 <https://gist.github.com/edvorg/acff4a58342edfa3485791a7ba57e172> -- View this message in context: http://xwiki.475771.n2.nabble.com/tree-view-macro-stops-working-after-changi... Sent from the XWiki- Dev mailing list archive at Nabble.com.