aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-05 22:43:05 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-05 22:43:05 +0200
commit63288ebc501739abb4da657eac49d4165f690dd3 (patch)
tree74203bb3d18dfe3c9ef1ee5fbe812aa35042c370 /apps/dav/lib
parent00558de782e93d2f5b7d73c0197fdf38261003f9 (diff)
downloadnextcloud-server-63288ebc501739abb4da657eac49d4165f690dd3.tar.gz
nextcloud-server-63288ebc501739abb4da657eac49d4165f690dd3.zip
Don't list on public calendar endpoints
There is no need to allow listing here. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CalDAV/PublicCalendarRoot.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/dav/lib/CalDAV/PublicCalendarRoot.php b/apps/dav/lib/CalDAV/PublicCalendarRoot.php
index 6d74b97f96e..94fb7e5e4d5 100644
--- a/apps/dav/lib/CalDAV/PublicCalendarRoot.php
+++ b/apps/dav/lib/CalDAV/PublicCalendarRoot.php
@@ -21,7 +21,6 @@
namespace OCA\DAV\CalDAV;
use Sabre\DAV\Collection;
-use Sabre\DAV\Exception\NotFound;
class PublicCalendarRoot extends Collection {
@@ -48,6 +47,7 @@ class PublicCalendarRoot extends Collection {
*/
function getChild($name) {
$calendar = $this->caldavBackend->getPublicCalendar($name);
+ $calendar['{http://owncloud.org/ns}owner-principal'] = '';
return new Calendar($this->caldavBackend, $calendar, $this->l10n);
}
@@ -55,13 +55,6 @@ class PublicCalendarRoot extends Collection {
* @inheritdoc
*/
function getChildren() {
- $calendars = $this->caldavBackend->getPublicCalendars();
- $children = [];
- foreach ($calendars as $calendar) {
- // TODO: maybe implement a new class PublicCalendar ???
- $children[] = new Calendar($this->caldavBackend, $calendar, $this->l10n);
- }
-
- return $children;
+ return [];
}
}