aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Publishing
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-07-11 14:26:09 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 11:55:36 +0200
commit00dc157b19834cfe558bc25a105cc509f47d7ed6 (patch)
tree590e1c4a0864b56a106e5e4e6a0f39108463f469 /apps/dav/lib/CalDAV/Publishing
parente7085aab387c90f6b5a7f8352864cc0d04bb96d1 (diff)
downloadnextcloud-server-00dc157b19834cfe558bc25a105cc509f47d7ed6.tar.gz
nextcloud-server-00dc157b19834cfe558bc25a105cc509f47d7ed6.zip
Fix requests for browser plugin as well as for the public calendar root folder
Diffstat (limited to 'apps/dav/lib/CalDAV/Publishing')
-rw-r--r--apps/dav/lib/CalDAV/Publishing/PublishPlugin.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
index f1f3540d68c..1d45aef5a2f 100644
--- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
+++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
@@ -91,7 +91,6 @@ class PublishPlugin extends ServerPlugin
$this->server->on('method:POST', [$this, 'httpPost']);
$this->server->on('propFind', [$this, 'propFind']);
- $this->server->on('method:GET', [$this, 'httpGet'], 90); // 90 because it needs to be called before auth
}
public function propFind(PropFind $propFind, INode $node)
@@ -210,31 +209,4 @@ class PublishPlugin extends ServerPlugin
}
}
-
- /**
- * We intercept the GET requests to provide our shared calendars.
- *
- * @param Sabre\HTTP\RequestInterface $request
- * @param Sabre\HTTP\ResponseInterface $response
- */
- public function httpGet(RequestInterface $request, ResponseInterface $response)
- {
- $path = $request->getPath();
-
- // TODO : Find a better way to do this
- list($path, $token) = explode('/', $path);
- if ($path !== 'public-calendars') {
- return;
- }
-
- // This is where the magic happens
- // Find a place to put the functions getResourceIdFromToken($token) and getRessource($id)
-
- $this->server->transactionType = 'access-published-calendar';
-
- $response->setStatus(200);
- $response->setBody('Success !');
-
- return false;
- }
}