From b38dfb190ee483707d952a3ead704d366936e1d7 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 9 Dec 2006 14:09:24 +1300 Subject: [PATCH] Allow shared / read locks as well as exclusive / write. --- inc/caldav-LOCK.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/caldav-LOCK.php b/inc/caldav-LOCK.php index 3d73532e..f2984ce2 100644 --- a/inc/caldav-LOCK.php +++ b/inc/caldav-LOCK.php @@ -48,6 +48,7 @@ foreach( $request->xml_tags AS $k => $v ) { } break; + case 'DAV::SHARED': case 'DAV::EXCLUSIVE': dbg_error_log( "LOCK", ":Request: %s -> %s", $v['type'], $tag ); if ( $inside['DAV::LOCKSCOPE'] && $v['type'] == "complete" ) { @@ -55,7 +56,7 @@ foreach( $request->xml_tags AS $k => $v ) { } break; - case 'DAV::WRITE': + case 'DAV::READ': dbg_error_log( "LOCK", ":Request: %s -> %s", $v['type'], $tag ); if ( $inside['DAV::LOCKTYPE'] && $v['type'] == "complete" ) { $locktype = strtolower(substr($tag,5));