[MAGNOLIA-1024] hasRole Method of MgnlUser does not find a role Created: 05/Sep/06  Updated: 23/Jan/13  Resolved: 20/Sep/06

Status: Closed
Project: Magnolia
Component/s: security
Affects Version/s: 3.0 RC2
Fix Version/s: 3.0 Final

Type: Bug Priority: Major
Reporter: Claudio Greuter Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows, magnolia3RC2


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 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.


Generated at Mon Feb 12 03:22:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.