diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-11-02 19:49:39 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-11-05 15:59:09 +0100 |
commit | 0c566698a161b0385ddce34293f98e040ba4d660 (patch) | |
tree | f462a720f7c2e2fd2d97366a0b493f360e801dfb /apps | |
parent | 6624fa212a4627217c9c95771f7bb933baaddbc1 (diff) | |
download | nextcloud-server-0c566698a161b0385ddce34293f98e040ba4d660.tar.gz nextcloud-server-0c566698a161b0385ddce34293f98e040ba4d660.zip |
Use the old code for remote shares for now
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |