diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-05 14:56:31 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-21 14:35:29 +0200 |
commit | 5646f7c76168b490574fadf9489872efa0dbd808 (patch) | |
tree | e6ceeac44ea8d01da197e9528c4116de3fa34ed1 /lib | |
parent | 45c3ee7f368d0980fca6729c10f62d7234529733 (diff) | |
download | nextcloud-server-5646f7c76168b490574fadf9489872efa0dbd808.tar.gz nextcloud-server-5646f7c76168b490574fadf9489872efa0dbd808.zip |
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 becf29e4cc7..73df6e1ec42 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -615,11 +615,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))) { |