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).
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.
User with 'Registrar' role goes to "Add a new user" page and can see all user profile fields, default and custom ones.