Log in

View Full Version : Secondary Usergroup Permissions?


Jaxel
08-05-2010, 07:31 PM
I have the following permission on one of my mods: "Can moderate comments".

I check this permission in my mod using the following line of code:
$perms['modcomments'] = ($permissions['medialibmodperms'] & $vbulletin->bf_ugp_medialibmodperms['canmodcomm']);

This works fine, if the permission is granted to a primary usergroup. However, I am trying to make a secondary usergroup and give them this permission. However, as a secondary usergroup, they don't appear to be getting this permission. Am I doing something wrong?

Xanlamin
08-05-2010, 09:28 PM
Primary always overrules the secondary, unless you check can have membergroups, then the permissions from the secondary are incorporated in with the primary.

Usergroup Options
Allow Users to have Member Groups (Sets whether or not permissions from the user's member (secondary) user group memberships are inherited or not) a yes means they can and the secondary usergroups permissions are allowed.

Jaxel
08-06-2010, 06:55 PM
Thanks man... that fixed it.