diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-10-15 12:43:22 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-31 06:55:52 +0100 |
commit | d0411b2369e285b8c82e49294244032ca9624075 (patch) | |
tree | e40e61c403c0544161f5bcfd42b450f9595d0d6f | |
parent | bbdfead9fdcfb98c76f8bd57b61d133a13f21697 (diff) | |
download | nextcloud-server-d0411b2369e285b8c82e49294244032ca9624075.tar.gz nextcloud-server-d0411b2369e285b8c82e49294244032ca9624075.zip |
allow to create multiple link shares via share api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index a935189491e..5137b102b5a 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -447,15 +447,6 @@ class ShareAPIController extends OCSController { throw new OCSNotFoundException($this->l->t('Public link sharing is disabled by the administrator')); } - /* - * For now we only allow 1 link share. - * Return the existing link share if this is a duplicate - */ - $existingShares = $this->shareManager->getSharesBy($this->currentUser, Share::SHARE_TYPE_LINK, $path, false, 1, 0); - if (!empty($existingShares)) { - return new DataResponse($this->formatShare($existingShares[0])); - } - if ($publicUpload === 'true') { // Check if public upload is allowed if (!$this->shareManager->shareApiLinkAllowPublicUpload()) { |