public function hasRight($right) {
		$user = $this->user();
		if ($this->_viewAuth && !is_null($user)) {
			return $this->_viewAuth['UserRights']->userHasRight($user, $right);
		}
		return false;
	}
public function hasRight($right) {
		$user = $this->user();
		if ($this->_viewAuth && !is_null($user)) {
			return $this->_viewAuth['UserRights']->userHasRight($user, $right);
		}
		return false;
	}
Returns whether the user has the given $right

@param string $right name of right
@return bool