Skip to content
Snippets Groups Projects
Commit 0c566698 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Use the old code for remote shares for now

parent 6624fa21
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment