PDA

View Full Version : Changing Social Group Leader without Transfer


hallenberg
20 Oct 2011, 07:10
Hi there.. I'm developing Social Groups for a particular purpose whereby users will not have permission to create groups freely; it will be Dr Admin's job to create a social group and then designate a leader.

I've discovered that the standard method of group ownership 'transfer' (wouldbe between Dr Admin and the designated group leader) won't work if the intended recipent doesn't have the permission to create groups..

Instead it seems fine to force a change of group ownership by jabbing a finger into the database to change the group's creatoruserid, but I'd appreciate a vB guru's view on whether that's all I need to worry about before I script it..?

Many thanks

Lynne
20 Oct 2011, 15:44
The person you transfer it to does need to have permissions to create a group. So, you may have to create a special page just for your Dr Admin to use for transferring groups that doesn't check permissions.

hallenberg
20 Oct 2011, 16:30
Thanks Lynne that's just what I had in mind but I wasn't sure it would be that simple. To be clear you're telling me there are no other db fields or functions I need to be aware of in the process of handing over a group..? Thanks.

Lynne
20 Oct 2011, 17:22
I would basically copy the code for transferring the group and get rid of the part that takes into consideration the permissions.