code: public function hasRight($right) {
  		$user = $this->user();
  		if ($this->_viewAuth && !is_null($user)) {
  			return $this->_viewAuth['UserRights']->userHasRight($user, $right);
  		}
  		return false;
  	}
docs: Returns whether the user has the given $right
  
  @param string $right name of right
  @return bool