mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-21 06:20:17 +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");
|
require_once("CalDAVRequest.php");
|
||||||
$request = new CalDAVRequest();
|
$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') );
|
$request->DoResponse( 403, translate('Anonymous users may only access public calendars') );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user