Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1024

hasRole Method of MgnlUser does not find a role

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 Final
    • 3.0 RC2
    • security
    • None
    • Windows, magnolia3RC2

    Description

      I tried to use the MgnlContext.getUser.hasRole() method, however my custom role is not found.

      I checked if I made a mistake with the role names by calling MgnlContext.getUser.getRoles(), but the additional role I added is there.

      "Funny" thing: It finds the role superuser with hasrole(), but not my custom role.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              cgr Claudio Greuter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD