public function isAuthenticatedByRole(Role $role) {

		return !isset($this->auth) || $this->auth === $role->getRoleName();

	}
public function isAuthenticatedByRole(Role $role) {

		return !isset($this->auth) || $this->auth === $role->getRoleName();

	}
public function isAuthenticatedByRole ( Role $ role ) { return ! isset ( $ this -> auth ) || $ this -> auth === $ role -> getRoleName ( ) ; }
check whether a role matches the auth attribute of the menu entry

@param Role $role
@return boolean
check whether a role matches the auth attribute of the menu entry