/** * * Returns true if the currently logged in user has the specified role. You may specify the * role as either an integer role_id, the role name or the role short name. * * @access public * @return bool True if user has role, false if not. */ public function hasRole($pm_role) { if ($this->isLoggedIn()) { return $this->user->hasRole($pm_role); } return false; }