summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-05 14:56:31 +0100
committerJulius Härtl <jus@bitgrid.net>2020-04-21 14:35:29 +0200
commit5646f7c76168b490574fadf9489872efa0dbd808 (patch)
treee6ceeac44ea8d01da197e9528c4116de3fa34ed1 /lib
parent45c3ee7f368d0980fca6729c10f62d7234529733 (diff)
downloadnextcloud-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.php5
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))) {