Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4456

XWikiRightService#hasAccessLevel badly evaluates rights for simple users on sub wikis from the main wiki (under some conditions)

    XMLWordPrintable

Details

    • Unknown

    Description

      I haven't been able to reproduce locally for the moment but the bug can be reproduced on xwiki.org

      $xwiki.xWiki.getRightService().hasAccessLevel("view", "xwiki:XWiki.jvdrean", "dev:Main.WebHome", $context.context)
      

      returns true, xwiki:XWiki.jvdrean has admin rights.

      $xwiki.xWiki.getRightService().hasAccessLevel("view", "xwiki:XWiki.XWikiNotifications", "dev:Main.WebHome", $context.context)
      

      returns false even though xwiki:XWiki.XWikiNotifications has view rights on dev:Main.WebHome

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: