diff options
author | Georg Ehrke <developer@georgehrke.com> | 2018-08-24 17:23:14 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2019-07-18 12:42:11 +0200 |
commit | 9f6dd51912b76d13704d3843f9a87eaf38646d15 (patch) | |
tree | 8c7958d5a6760d6c978de3f0c1c3405d6f6df7e4 /apps/dav/lib/CalDAV/Calendar.php | |
parent | 3d0e0f23530160419f182ac9e896dea6f7bc9f59 (diff) | |
download | nextcloud-server-9f6dd51912b76d13704d3843f9a87eaf38646d15.tar.gz nextcloud-server-9f6dd51912b76d13704d3843f9a87eaf38646d15.zip |
LIMIT is no column but a SQL feature, allow limit on initial sync
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index e80bffdb9d0..f26913d7ce1 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -27,6 +27,7 @@ namespace OCA\DAV\CalDAV; use OCA\DAV\DAV\Sharing\IShareable; +use OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException; use OCP\IConfig; use OCP\IL10N; use Sabre\CalDAV\Backend\BackendInterface; @@ -339,4 +340,14 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { return isset($this->calendarInfo['{http://calendarserver.org/ns/}source']); } + /** + * @inheritDoc + */ + public function getChanges($syncToken, $syncLevel, $limit = null) { + if (!$syncToken && $limit) { + throw new UnsupportedLimitOnInitialSyncException(); + } + + return parent::getChanges($syncToken, $syncLevel, $limit); + } } |