Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-09-09 15:32:11 +0300
committerJoas Schilling <coding@schilljs.com>2019-11-12 19:37:47 +0300
commite79ab7d0c565425c9d103930787f37c1ed3a9ed6 (patch)
treee3ac6c059047e8d760713079b975387b3a1532ad /apps/files_sharing/lib/Controller
parent19e1892d507c52b36ec4f7e42cc1e0989158ef79 (diff)
The share manager knows which provider can accept shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 9c5f6abee68..90a76e2223d 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -966,11 +966,6 @@ class ShareAPIController extends OCSController {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
}
- if ($share->getShareType() !== IShare::TYPE_USER &&
- $share->getShareType() !== IShare::TYPE_GROUP) {
- throw new OCSNotFoundException($this->l->t('Share type does not support accepting'));
- }
-
try {
$this->shareManager->acceptShare($share, $this->currentUser);
} catch (GenericShareException $e) {