Uploaded image for project: '{RETIRED} XWiki Panels Application'
  1. {RETIRED} XWiki Panels Application
  2. XAPANELS-79

Navigation panel should check access levels

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.20
    • None
    • Panels
    • None

    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.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            martijn Martijn Ras
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: