diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-05 16:56:31 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-05-26 12:28:42 +0300 |
commit | 4a2ded019965191bfc1b6c08562bc1a6e5f98251 (patch) | |
tree | 33f174f970ac06e5b77507e4f541c2d7f61b5870 /lib | |
parent | 5b74da3a87545daa07a8011f7f191fdb3413870d (diff) |
Link shares have reshare permission if outgoing federated shares are enabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 b432dc2888e..73860fd39f4 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -626,11 +626,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))) { |