Uploaded image for project: 'Admincentral'
  1. Admincentral
  2. ADMINCTR-131

MgnlUser check missing when opening the Edit User dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.20
    • 6.2.19
    • None
    • AdminX 12
    • 3

      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;
              }

        Acceptance criteria

              nguyen.phung Nguyen Phung Chi
              rgaona Roberto Gaona
              AdminX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1.5d
                  1.5d