2008-08-31, 10:34 AM
There is the following code in the function get_unviewable_forums:
$pid = intval($pid);
if(!$permissions)
{
$permissions = $mybb->usergroup;
}
Neither $pid nor $permissions are available in this function body. They aren't used there.