Page 1 of 1

plugin-adduser does not apply group membership

Posted: Fri Jul 18, 2008 6:10 pm
by marcus
Hi all,

I have configured the add-user plugin so that it creates users with userlevel=X and group_membership=(X). However only the userlevel is actually applied on users creation, the new user is still not 'member' of the requested group.

IMO a (quite serious) bug.

Best regards,
Marcus

Posted: Mon Jul 21, 2008 5:31 pm
by judebert
Sure sounds like trouble. How are you determining the user's group memberships?

Posted: Tue Jul 22, 2008 10:24 am
by garvinhicking
Hi!

Hm, I see the trouble. The usergroups were not initialized at the proper place inside the plugin.

I just committed an updated version 2.26 of the plugin. To fix the bug, you need this new file:

http://php-blog.cvs.sourceforge.net/*ch ... ision=1.21

You can save this as serendipity_plugin_adduser.php. Of course, you can also download the updated plugin via spartacus in the next 24-48 hours.

Thanks for reporting this!

Best regards,
Garvin