src/Lib/AuthActionsTrait.php
public function hasRight($right) {
		if ($this->Auth->user() !== null) {
			return $this->getUserRights()->userHasRight($this->Auth->user(), $right);
		}
		return false;
	}
public function hasRight($right) {
		if ($this->Auth->user() !== null) {
			return $this->getUserRights()->userHasRight($this->Auth->user(), $right);
		}
		return false;
	}
public function hasRight ( $ right ) { if ( $ this -> Auth -> user ( ) !== null ) { return $ this -> getUserRights ( ) -> userHasRight ( $ this -> Auth -> user ( ) , $ right ) ; } return false ; }
See UserRights::userHasRight()

@param string $right right name
@return bool
See UserRights :: userHasRight ()