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

    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: