mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Cut access with invalid/expired tickets out immediately.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
ac190c7277
commit
9bb339e291
@ -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') );
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user