Description
Heya Folks,
The navigation panel should check access levels, the way its currently been implemented it will show all spaces regardless of the access level of the user. I updated my version with a little help from the spaces page, by replacing the following line:
#if (!$hiddenSpaces.contains($space) || ($hiddenSpaces.contains($space) && $xwiki.hasAdminRights()))
with this one:
#if($xwiki.hasAdminRights() || ($xwiki.hasAccessLevel("view", "${space}.WebHome") && !$blacklistedSpaces.contains($space)))
Mazzel,
Martijn.