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

Different results for $xwiki.checkAccess and $xwiki.hasAccessLevel

    XMLWordPrintable

Details

    • Unknown

    Description

      When checking access rights for a global user from the global wiki on a document in a virtual wiki, depending on the rights set on the local wiki, checkAccess returns true, while hasAccessLevel returns false.

      I didn't inspect this, but my guess is that the latter method switches the context wiki, without updating the username to remember his origin wiki, so it checks the rights for a non-existing local user.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              sdumitriu Sergiu Dumitriu
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: