diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-04-27 11:05:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 11:05:34 +0200 |
commit | 1738e17e204c813bc3ab970e18a94b415c41af41 (patch) | |
tree | 202f06b32ed14fe2a08ab446be9242ac15382bc3 /lib | |
parent | a64681a0fed38eb1652ddf3dd9aeeefb2a021f11 (diff) | |
parent | 7a9469f282471168a48acdcbed84579bd93efa43 (diff) | |
download | nextcloud-server-1738e17e204c813bc3ab970e18a94b415c41af41.tar.gz nextcloud-server-1738e17e204c813bc3ab970e18a94b415c41af41.zip |
Merge pull request #19793 from nextcloud/bugfix/noid/link-to-federated-reshare
Fix resharing of federated shares that were created out of links
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index eae26645b55..2718879dc99 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -625,11 +625,6 @@ class Manager implements IManager { throw new \Exception('Link sharing is not allowed'); } - // Link shares by definition can't have share permissions - if ($share->getPermissions() & \OCP\Constants::PERMISSION_SHARE) { - throw new \InvalidArgumentException('Link shares can’t have reshare permissions'); - } - // Check if public upload is allowed if (!$this->shareApiLinkAllowPublicUpload() && ($share->getPermissions() & (\OCP\Constants::PERMISSION_CREATE | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE))) { |