summaryrefslogtreecommitdiffstats
path: root/apps/cloud_federation_api/lib/Controller
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-06-13 14:33:11 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-02 11:29:30 +0200
commit5c8b26248b58d89f6225e2042fc95dda1823e67e (patch)
treed41f9de331644c4f100aaee7aba4b1b2a0556f27 /apps/cloud_federation_api/lib/Controller
parent22d92461346a795ed9ec7047ba191f02db81c4d1 (diff)
downloadnextcloud-server-5c8b26248b58d89f6225e2042fc95dda1823e67e.tar.gz
nextcloud-server-5c8b26248b58d89f6225e2042fc95dda1823e67e.zip
let the actual federated share provider check if incoming/outgoing shares are enabled for the specific resource type
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/cloud_federation_api/lib/Controller')
-rw-r--r--apps/cloud_federation_api/lib/Controller/RequestHandlerController.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
index 2020dcce015..27dd89f2abe 100644
--- a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
+++ b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
@@ -117,13 +117,6 @@ class RequestHandlerController extends Controller {
*/
public function addShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $protocol, $shareType, $resourceType) {
- if (!$this->config->incomingRequestsEnabled()) {
- return new JSONResponse(
- ['message' => 'This server doesn\'t support outgoing federated shares'],
- Http::STATUS_NOT_IMPLEMENTED
- );
- }
-
// check if all required parameters are set
if ($shareWith === null ||
$name === null ||
@@ -212,12 +205,6 @@ class RequestHandlerController extends Controller {
* @return JSONResponse
*/
public function receiveNotification($notificationType, $resourceType, $providerId, array $notification) {
- if (!$this->config->incomingRequestsEnabled()) {
- return new JSONResponse(
- ['message' => 'This server doesn\'t support outgoing federated shares'],
- Http::STATUS_NOT_IMPLEMENTED
- );
- }
// check if all required parameters are set
if ($notificationType === null ||