mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Fix that last fix... :-)
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
fcd2ffc5b3
commit
422144b68a
@ -17,13 +17,15 @@ $session = new PublicSession();
|
||||
/** A simplified DAV header in this case */
|
||||
$dav = "1, 2, calendar-access";
|
||||
header( "DAV: $dav");
|
||||
|
||||
require_once("CalDAVRequest.php");
|
||||
$request = new CalDAVRequest();
|
||||
if ( ! $request->IsPublic()
|
||||
|| ! isset($request->ticket)
|
||||
if ( ! $request->IsPublic() &&
|
||||
(! isset($request->ticket)
|
||||
|| $request->ticket->expired
|
||||
|| ! $request->ticket->MatchesPath($request->path) ) {
|
||||
|| ! $request->ticket->MatchesPath($request->path) ) ) {
|
||||
dbg_error_log( "caldav", 'Public: %d, Ticket: %d, Expired: %d, Matches(%s): %d',
|
||||
$request->IsPublic(), isset($request->ticket), $request->ticket->expired, $request->path, $request->ticket->MatchesPath($request->path)
|
||||
);
|
||||
$request->DoResponse( 403, translate('Anonymous users may only access public calendars') );
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user