Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-416

STKUtil#currentUserHasOneRole won't work with inherited/group roles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.2
    • None
    • base system
    • None

    Description

      If the user has the roles this method is looking for, but has through through its group (direct groups or inherited groups), this method won't see it. Either of MgnlUser.hasRole or this method need to be fixed to use User.getAllRoles instead. If the former, this means an api change, although the javadoc has never specified how it should behave.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              had Jan Haderka
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: