Doesn't seem to work with fields on user accounts

Created on 8 September 2017, over 7 years ago
Updated 5 December 2024, 4 months ago

As far as I can tell, this doesn't seem to work with fields on user accounts. I'm on Drupal 8.3.7. I've marked a few fields as required for anonymous users and two different authenticated user roles. After clearing the cache, when I go to create a new user as an administrator, those fields are still required.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kostajh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡ͺBelgium dieterholvoet Brussels

    You're misunderstanding the purpose of the module. It checks the roles of the currently logged in user, not a user you might be editing. I recommend you create your own plugin for this purpose. You could base it on the changes in doesnt_seem_work_with_fields_user_accounts-2907450-4.patch, or you could wait until version 2 of the module is released. In that version the isRequired() method will have access to the edited entity, which will make it so you don't have to get it from the route match.

Production build 0.71.5 2024