vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Changing Social Group Leader without Transfer (https://vborg.vbsupport.ru/showthread.php?t=272409)

hallenberg 10-20-2011 06:10 AM

Changing Social Group Leader without Transfer
 
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 10-20-2011 02:44 PM

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 10-20-2011 03:30 PM

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 10-20-2011 04:22 PM

I would basically copy the code for transferring the group and get rid of the part that takes into consideration the permissions.


All times are GMT. The time now is 03:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00978 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete