![]() |
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. |
A bit difficult to answer without seeing the code you are using.
|
Code:
$img_width=$permissions['imghost_width']; |
Those permissions should already contain the values from the usergroup with the highest values.
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|