• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Minimal Documentation Error

R

ragtek

Guest
#1
XenForo_Visitor:: hasPermission can return bool AND an integer value and not only boolean ;)

/**
* Determines if the visitor has a specific permission.
*
* @param string $group Permission group
* @param string $permission
*
* @return boolean
*/
public function hasPermission($group, $permission)
{
return XenForo_Permission::hasPermission($this->_user['permissions'], $group, $permission);
}