Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- Patch #10718 by drumm: bugfix: it was possible to save a user with no roles assigned when the form clearly said at least one was required.
results in a unclear situation.
Now it is not possible to create a new user as admin by hand.
I get the error message "You must select at least one role." But the form gives no possibility to do that (or i missed a necessary setting).
Comment | File | Size | Author |
---|---|---|---|
#4 | user.module_3.diff | 2.99 KB | drumm |
#2 | user.module_2.diff | 1.75 KB | drumm |
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedI think it would be usefull to add the ability to assign roles into the admin user creation form.
Comment #2
drummYeah, I made a little mess there. Sorry. Here is a patch to clean that up.
Comment #3
Steven CreditAttribution: Steven commentedApplied to HEAD.
Comment #4
drummThis rolls back the first patch in favor of a much better approach. Only validate if the user saw the roles checkboxes (has administer users permission). This solves a few more cases that were broken. The one outstanding case was privileged users creating accounts which means they have administer users permission but were not presented checkboxes for roles. Sorry for the sloppy coding the first time around, I think I tested all the cases this time.
Comment #5
univie CreditAttribution: univie commentedIs this fixed? I think it works but
with subscription module enabled the following problem occur with user.module 1386
and also using user.module_3.diff
If I create a new user account I get this error messages, but the user is created
Comment #6
drummUpdate #5 appears to be an unreleated problem, please file a separate bug report.
Comment #7
drummLooks like this was commited to Drupal CVS with a small code style fix.
Comment #8
(not verified) CreditAttribution: commented