vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   premissions for more than 1 group (https://vborg.vbsupport.ru/showthread.php?t=96617)

loneranger 09-20-2005 06:32 PM

premissions for more than 1 group
 
hi
i have coded a extensions and seem to have hit a problem i use the premission setting to decide how much a user can upload ect but if that user is a member of more that 1 group it will take the premissions of the group in the lowest order eg

user 1 = admin , super mod , special

the premissions for that users upload will be the ones set for special not the admin or mod

any help would be appricated as i am stuck, not sure if this is a vbulletin bug or just my bad coding.

Marco van Herwaarden 09-20-2005 07:48 PM

A bit difficult to answer without seeing the code you are using.

loneranger 09-21-2005 09:19 AM

Code:

$img_width=$permissions['imghost_width'];
$img_height=$permissions['imghost_height'];
$img_filesize=$permissions['imghostset'];

i am using this code to get the users premissions any solutions to my code to stop it only getting it from the last usergroup the user is a member of.

Marco van Herwaarden 09-21-2005 10:42 AM

Those permissions should already contain the values from the usergroup with the highest values.

loneranger 09-21-2005 01:08 PM

ah i have found the problem you are right it will read the highest value but all the groups the user is a member of must have a value higher than 0 if it is 0 it will take that as the highest ( 0 usual means unlimited) but i didn't want that lol thanks for your help


All times are GMT. The time now is 07:01 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.01045 seconds
  • Memory Usage 1,711KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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