Changes for page Spaces

Last modified by Drunk Monkey on 2025-07-01 07:23

From version 4.1
edited by Drunk Monkey
on 2022-08-02 10:56
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-ui/14.6]
To version 6.1
edited by Drunk Monkey
on 2025-05-02 10:05
Change comment: Migrated property [executionIsolated] from class [XWiki.WikiMacroClass]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -10,10 +10,9 @@
10 10   ## List spaces.
11 11   ##
12 12   #foreach($space in $spaceList)
13 - ## Display space only if the user has view right on space home and if the space is not blacklisted.
14 - ## $blacklistedSpaces is set in xwikivars.vm
13 + ## Display space only if the user has view right on space home
15 15   #set ($spaceHomeDocumentReference = $services.model.resolveSpace($space))
16 - #if($xwiki.hasAccessLevel('view', $services.model.serialize($spaceHomeDocumentReference)) && !$blacklistedSpaces.contains($space))
15 + #if($xwiki.hasAccessLevel('view', $services.model.serialize($spaceHomeDocumentReference)))
17 17   <li class="xitem xunderline xhighlight space">
18 18   <div class="xitemcontainer">
19 19   <div class="spSpaceName"><a href="$xwiki.getURL($spaceHomeDocumentReference)">${escapetool.xml($space)}</a></div>