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

API isUserInGroup method doesn't work with sub group

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 7.0.1
    • Old Core
    • None
    • Unknown

    Description

      Hello,

      If I have a main group with some sub group: ie group1 and group2.
      If my user is in group1, $MyUser.isUserInGroup("XWiki.MainGroup") return false instead true.
      (Method working well if I fill MainGroup with users)

      Here a piece of code to test

      {{velocity}}
      #set($Grp="XWiki.MyGroup")
      #set($user=$xwiki.getUser())
      $user.isUserInGroup($Grp)
      {{/velocity}}
      

      Thxs

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            Pbas Pascal BASTIEN
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: