When admin adds a user, 'authenticated user' role is not assigned to the new user.

That's because validate check array_flips() roles array and 0 is inserted instead of 2. One-line fix attached.

Comments

moshe weitzman’s picture

i can confirm that this indeed a bug in 4.5 and HEAD. i have not tested this fix though. looks simple enough.

dries’s picture

Committed to HEAD and DRUPAL-4-5. Thanks.

Anonymous’s picture