Quote:
can_moderate() Returns whether or not the given user can perform a specific moderation action in the specified forum
boolean can_moderate ([integer $forumid = 0], [string $do = ''], [integer $userid = -1], [string $usergroupids = '']) - integer $forumid: Forum ID
- string $do: If you want to check a particular moderation permission, name it here
- integer $userid: User ID
- string $usergroupids: Comma separated list of usergroups to which the user belongs
http://members.vbulletin.com/api/vBulletin/_includes_functions_php.html#functioncan_moderate
|
So you could do something like.
PHP Code:
if(can_moderate(4, '', 1))
{
//...
}