diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-21 22:54:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-21 22:54:17 +0100 |
commit | d0c3c5cee333c863af1e7971af2c6ef2d04cfd9a (patch) | |
tree | f6d64d524b40fec676fbe0e62c6824fe893ee2d5 /apps/dav/lib | |
parent | de0df3cfd9e14740c0541c49bc167510f17ae916 (diff) | |
parent | 3a8c4230be2d7311ca012f09538cdad2147fae75 (diff) | |
download | nextcloud-server-d0c3c5cee333c863af1e7971af2c6ef2d04cfd9a.tar.gz nextcloud-server-d0c3c5cee333c863af1e7971af2c6ef2d04cfd9a.zip |
Merge pull request #2225 from nextcloud/fix_caldav_proppatch_requests
fix PropPatch requests on calendars
Diffstat (limited to 'apps/dav/lib')
-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); |