mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Use the old code for remote shares for now
This commit is contained in:
parent
6624fa212a
commit
0c566698a1
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue