[MGNLSTK-416] STKUtil#currentUserHasOneRole won't work with inherited/group roles Created: 22/Jul/09 Updated: 23/Jan/13 Resolved: 04/Aug/09 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | base system |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Jan Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| 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. |
| Comments |
| Comment by Jan Haderka [ 04/Aug/09 ] |
|
Changed behaviour of STK method only to avoid possible side effects with changes in MgnlUser in minor release. |