Last modified by Agnease on 2026/06/08 18:37

From version 2.3
edited by Agnease
on 2026/06/08 18:04
Change comment: There is no comment for this version
To version 2.9
edited by Agnease
on 2026/06/08 18:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -201,9 +201,11 @@
201 201   <code>XWiki.XWikiRights</code> objects. It is not a complete audit, but it gives you a practical first list of
202 202   places where local rights may exist.
203 203   </p>
204 +{{/html}}
204 204  
205 -{{code language="velocity"}}
206 -#set ($query = "select distinct doc.fullName from XWikiDocument doc, BaseObject obj where obj.name = doc.fullName and obj.className = 'XWiki.XWikiRights' order by doc.fullName asc")
206 +
207 +{{code}}
208 +#set ($query = "from doc.object(XWiki.XWikiRights) rights order by doc.fullName asc")
207 207  #set ($pages = $services.query.xwql($query).execute())
208 208  
209 209  #if ($pages.isEmpty())
... ... @@ -216,6 +216,8 @@
216 216  #end
217 217  {{/code}}
218 218  
221 +
222 +{{html clean="false"}}
219 219   <p>
220 220   Use the result as a starting point. Each page should be reviewed in context: why local rights were added, which
221 221   users or groups are affected, whether rights apply only to that page or to a hierarchy, and whether the exception