summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/caldav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-09 15:03:15 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-29 16:49:55 +0100
commit95e218b00c9526bf3cba8ce719b09b1ea9d49ba9 (patch)
treeee79f3605da9052aba89d39cbaaed31d1f333bae /apps/dav/lib/caldav
parentd98217d8ba90fd0082b055d55e96c03fac9bb4c3 (diff)
downloadnextcloud-server-95e218b00c9526bf3cba8ce719b09b1ea9d49ba9.tar.gz
nextcloud-server-95e218b00c9526bf3cba8ce719b09b1ea9d49ba9.zip
For 9.0 we don't have the possibility to store calendar and addressbook properties on a per-user basis and therefore we simple don't allow this for now
Diffstat (limited to 'apps/dav/lib/caldav')
-rw-r--r--apps/dav/lib/caldav/calendar.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/lib/caldav/calendar.php b/apps/dav/lib/caldav/calendar.php
index 6b34d570eb3..738b366b08d 100644
--- a/apps/dav/lib/caldav/calendar.php
+++ b/apps/dav/lib/caldav/calendar.php
@@ -4,6 +4,7 @@ namespace OCA\DAV\CalDAV;
use OCA\DAV\DAV\Sharing\IShareable;
use Sabre\DAV\Exception\Forbidden;
+use Sabre\DAV\PropPatch;
class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
@@ -103,4 +104,11 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
}
parent::delete();
}
+
+ function propPatch(PropPatch $propPatch) {
+ if (isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal'])) {
+ throw new Forbidden();
+ }
+ parent::propPatch($propPatch);
+ }
}