src/View/Helper/AuthHelper.php
public function hasRole($requestedRole) {
		$roles = $this->user($this->getConfig('roleField'));
		if (is_null($roles)) {
			return false;
		}

		return $this->_checkRoles($requestedRole, $roles);
	}
public function hasRole($requestedRole) {
		$roles = $this->user($this->getConfig('roleField'));
		if (is_null($roles)) {
			return false;
		}

		return $this->_checkRoles($requestedRole, $roles);
	}
public function hasRole ( $ requestedRole ) { $ roles = $ this -> user ( $ this -> getConfig ( 'roleField' ) ) ; if ( is_null ( $ roles ) ) { return false ; } return $ this -> _checkRoles ( $ requestedRole , $ roles ) ; }
Role check.

@param array|string $requestedRole Role string or set of role identifiers.
@return bool|null True if the role is in the set of roles for the active user data.
Role check .