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

Navigation panel should check access levels

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.20
    • Component/s: Panels
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: