From 0c566698a161b0385ddce34293f98e040ba4d660 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <rullzer@owncloud.com>
Date: Mon, 2 Nov 2015 19:49:39 +0100
Subject: [PATCH] Use the old code for remote shares for now

---
 apps/files_sharing/api/share20ocs.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php
index aeeb3ee25b3..8a7f90c0023 100644
--- a/apps/files_sharing/api/share20ocs.php
+++ b/apps/files_sharing/api/share20ocs.php
@@ -62,6 +62,14 @@ class Share20OCS {
 			return new \OC_OCS_Result(null, 404, 'wrong share ID, share doesn\'t exist.');
 		}
 
+		/*
+		 * FIXME
+		 * User the old code path for remote shares until we have our remoteshareprovider
+		 */
+		if ($share->getShareType() === \OCP\Share::SHARE_TYPE_REMOTE) {
+			\OCA\Files_Sharing\API\Local::deleteShare(['id' => $id]);
+		}
+
 		try {
 			$this->shareManager->deleteShare($share);
 		} catch (\OC\Share20\Exception\BackendError $e) {
-- 
GitLab