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

Checking group membership in subwikis with User.isUserInGroup() doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 5.4-milestone-1
    • Old Core
    • Easy
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Start with a main wiki with a user xwiki:XWiki.Admin belonging to the xwiki:XWiki.AdminGroup group
      2. Create a subwiki that doesn't have any local users
      3. In the subwiki, while logged in as xwiki:XWiki.Admin, execute this velocity statement: $xwiki.user.isUserInGroup("xwiki:XWiki.AdminGroup")

      It should return true, while the result is false.

      Attachments

        Activity

          People

            softec Denis Gervalle
            fmancinelli Fabio Mancinelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: