Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-1616

Configuration setting to allow My Profile editing

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.4
    • Component/s: Admin
    • Labels:
      None

      Description

      We need to have probably two new configuration settings to disable the my profile editing.

      One setting is to disable *all* editing of users' profiles.

      The other setting only allows a partial editing (only allowing the contact details to be changed).

        Activity

        Hide
        ernieg Ernie Ghiglione added a comment -
        We might need to have another setting as well to enable/disable the upload of portrait pictures.
        Show
        ernieg Ernie Ghiglione added a comment - We might need to have another setting as well to enable/disable the upload of portrait pictures.
        Hide
        ernieg Ernie Ghiglione added a comment -
        Marcin,

        Can you have a look at this please?

        The issue here is that this works partially.

        It does work when you set both config settings to true, but if you set up Enable Profile Editing to false, but Enable Partial Profile Editing to true (which will mean that only contact details are editable, when you attempt to save, nothing really saves.

        Show
        ernieg Ernie Ghiglione added a comment - Marcin, Can you have a look at this please? The issue here is that this works partially. It does work when you set both config settings to true, but if you set up Enable Profile Editing to false, but Enable Partial Profile Editing to true (which will mean that only contact details are editable, when you attempt to save, nothing really saves.
        Hide
        marcin Marcin Cieslak added a comment -
        Updated contact details were not saved because of validation errors.
        First and last name are required, but they are not submitted if they are disabled in Partial Profile Edit mode.
        Fixed by adding hidden form fields which deliver first and last name to Action even if the real input fields are disabled.

        Also fixed validation messages overwriting. If a required field (first, last name, email) was missing, a validation error message was generated but it was overwritten in ProfileAction by information that only Partial Profile Editing is available.
        Show
        marcin Marcin Cieslak added a comment - Updated contact details were not saved because of validation errors. First and last name are required, but they are not submitted if they are disabled in Partial Profile Edit mode. Fixed by adding hidden form fields which deliver first and last name to Action even if the real input fields are disabled. Also fixed validation messages overwriting. If a required field (first, last name, email) was missing, a validation error message was generated but it was overwritten in ProfileAction by information that only Partial Profile Editing is available.
        Hide
        ernieg Ernie Ghiglione added a comment -
        Tested and closed. Thanks Marcin
        Show
        ernieg Ernie Ghiglione added a comment - Tested and closed. Thanks Marcin

          People

          • Assignee:
            marcin Marcin Cieslak
            Reporter:
            ernieg Ernie Ghiglione
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development