Log in

View Full Version : premissions for more than 1 group


loneranger
09-20-2005, 06:32 PM
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
$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