mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Cut access with invalid/expired tickets out immediately.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
1 parent
ac190c7277
commit
9bb339e291
1 file changed
+2
-1
+2
-1
@@ -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') );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user