Cut access with invalid/expired tickets out immediately.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Andrew McMillan committed 2010-12-08 12:57:12 +13:00
1 parent ac190c7277
commit 9bb339e291
1 file changed
+2 -1
+2 -1
View File
@@ -20,7 +20,8 @@ header( "DAV: $dav");
require_once("CalDAVRequest.php");
$request = new CalDAVRequest();
if ( !isset($request->ticket) && !$request->IsPublic() ) {
if ( !isset($request->ticket) && !$request->IsPublic()
|| (isset($request->ticket) && $request->ticket->expired ) ) {
$request->DoResponse( 403, translate('Anonymous users may only access public calendars') );
}