[ADMINCTR-131] MgnlUser check missing when opening the Edit User dialog Created: 24/May/22 Updated: 03/Aug/22 Resolved: 15/Jun/22 |
|
| Status: | Closed |
| Project: | Admincentral |
| Component/s: | None |
| Affects Version/s: | 6.2.19 |
| Fix Version/s: | 6.2.20 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Roberto Gaona | Assignee: | Nguyen Phung Chi |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | 1.5d | Time Spent: | 1.5d |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Issue Links: |
|
|||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||
| Template: |
|
|||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
|||||||||||||||||||||||||
| Date of First Response: | ||||||||||||||||||||||||||
| Epic Link: | Preferences and User profile | |||||||||||||||||||||||||
| Sprint: | AdminX 12 | |||||||||||||||||||||||||
| Story Points: | 3 | |||||||||||||||||||||||||
| Team: | ||||||||||||||||||||||||||
| Description |
|
On previous versions to 6.2.19, there was a check when opening the edit user dialog that checked if the user was indeed a MgnlUser. However, this check isn't present anymore on Magnolia 6.2.19, which causes that trying to edit an ExternalUser yields an exception rather than a warning as before. New code:
valueContext.set(new JcrDatasource(contextProvider, DATASOURCE_DEFINITION).getJCRSession().getNodeByIdentifier(contextProvider.get().getUser().getIdentifier()));
Old implementation: if (!(user instanceof MgnlUser)){ uiContext.openNotification(MessageStyleTypeEnum.ERROR, false, i18n.translate("actions.editUserProfile.not.available", dialogName)); return; } |