diff options
author | Georg Ehrke <developer@georgehrke.com> | 2016-11-21 21:58:24 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2016-11-21 22:10:51 +0100 |
commit | 3a8c4230be2d7311ca012f09538cdad2147fae75 (patch) | |
tree | 0d2752c96a95d7bb01093d9f3d2fac5c42a4cb48 /apps/dav/lib/CalDAV/Calendar.php | |
parent | de983e61e3660964154d1c7f447ca8a2055cc2d6 (diff) | |
download | nextcloud-server-3a8c4230be2d7311ca012f09538cdad2147fae75.tar.gz nextcloud-server-3a8c4230be2d7311ca012f09538cdad2147fae75.zip |
fix PropPatch requests on calendars
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/Calendar.php')
-rw-r--r-- | apps/dav/lib/CalDAV/Calendar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index 9fedbe6f91f..ef8e21be83a 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -177,7 +177,7 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { function propPatch(PropPatch $propPatch) { $mutations = $propPatch->getMutations(); // If this is a shared calendar, the user can only change the enabled property, to hide it. - if (isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal']) && (sizeof($mutations) !== 1 || !isset($mutations['{http://owncloud.org/ns}calendar-enabled']))) { + if ($this->isShared() && (sizeof($mutations) !== 1 || !isset($mutations['{http://owncloud.org/ns}calendar-enabled']))) { throw new Forbidden(); } parent::propPatch($propPatch); |