Relationships > Users > Add button - Users are created with default WP role when current user does not have promote_users cap #7333
Labels
Status: Need Research
Status: Need User Feedback
Waiting on feedback from user who reported issue
Type: Enhancement
Enhancements to features that already exist, but are not major additions
Milestone
Description
I have a custom post type created with Pods that has 2 user relationship fields, each one for a different custom user role. I'm using a filter to only show users with that specific role. In these fields, I enabled the possibility of adding new users.
The problem is that these users are created with the default role configured in Wordpress (subscriber) and not with the filtered field role. Only administrators has the option to choose the role (which is not the case, because who's creating users ate not administrators).
Example: "owner" field with filter to only show users who have the "owner" role. When creating a new user using the Add New button, the user is created with the role "subscriber" instead of "owner".
Version
3.2.1
Testing Instructions
Screenshots / Screencast
User Relationship fields
Form the create users in a modal
Possible Workaround
No response
Site Health Information
No response
Pods Package
No response
The text was updated successfully, but these errors were encountered: