From 7f9653c783c0422df1d843e553e64bbff4595abc Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 11 Dec 2006 10:56:06 +1300 Subject: [PATCH] Reinstate ability to add calendars/collections if you have 'write' privilege, although this seems to be not strictly correct. --- inc/CalDAVRequest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 1ea89d12..b9bf3d1f 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -377,7 +377,8 @@ class CalDAVRequest break; case 'mkcalendar': case 'mkcol': - return isset($this->permissions['bind']); + /** FIXME: Really this should only be 'bind' alone, I think. */ + return isset($this->permissions['write']) || isset($this->permissions['bind']); break; default: return isset($this->permissions[$activity]);