plugin-adduser does not apply group membership

Found a bug? Tell us!!
Post Reply
marcus
Posts: 4
Joined: Tue Jul 15, 2008 3:37 pm

plugin-adduser does not apply group membership

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Sure sounds like trouble. How are you determining the user's group memberships?
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply