* @copyright 2004 by http://wombat.exit0.net * @package wombatSite * @subpackage user */ /** * access pemitted to anonymous users! * * This authentication module is just the opposite of the * user-module. That means access for all logged in users * is denied while unauthorized users gain access. * * An application may be a page which allows to register new * users - if you want to hide this page to well known users, * you may want to use this authorisation module. * * @version 0.1 * @package wombatSite * @subpackage user */ class wbAuthorize_Anonymous { /** * authorize against rule * * @access public * @param string $rule * @return boolean $result true on success */ function checkAuthorisation( $rule ) { $user =& wbFactory::singleton( 'wbAuth' ); return !$user->isAuthenticated(); } } ?>