Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-65866

Custom profile fields not showing on “Add a new user page” when capability moodle/user:update is not set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.4
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      Hello,

      This bug occurred after a migration from 3.4.2 to 3.6.4

      Steps to reproduce

      Create a role “registrar” based on the Archetype: manager role. We want to allow this role to be able to create new users but not be able to update user profiles in system context.

      Change role's permissions as following:

      • moodle/user:create ->allow
      • moodle/user:update ->not set

      Create a set of custom user profile fields (one is enough).

      Behavior

      User with 'Registrar' role goes to “Add a new user” page (Site Administration-> Users-> Add a new user), the form (.../user/editadvanced.php?id=-1) is displayed but without any of the custom user profile fields. All other fields display properly.

      Expected behavior

      User with 'Registrar' role goes to "Add a new user" page and can see all user profile fields, default and custom ones.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            vansk Varvara Skiadelli
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: