diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-04-14 14:50:24 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-04-16 20:38:20 +0200 |
commit | 47d1afbb7f07e1990be0d0c0a763f5ba1c8c000f (patch) | |
tree | 807f1369c25d4b1838cc1bdbb9cb39111fe99000 /apps/files_sharing/lib | |
parent | a799d8dccfce5b740b24ea3b753652fff69987c3 (diff) | |
download | nextcloud-server-47d1afbb7f07e1990be0d0c0a763f5ba1c8c000f.tar.gz nextcloud-server-47d1afbb7f07e1990be0d0c0a763f5ba1c8c000f.zip |
revert: do not unify `hide-download` and `prevent-download` permissions
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 65061a1384d..81ead3c4978 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1293,16 +1293,11 @@ class ShareAPIController extends OCSController { || $share->getShareType() === IShare::TYPE_EMAIL) { // Update hide download state - $attributes = $share->getAttributes() ?? $share->newAttributes(); if ($hideDownload === 'true') { $share->setHideDownload(true); - $attributes->setAttribute('permissions', 'download', false); } elseif ($hideDownload === 'false') { $share->setHideDownload(false); - $attributes->setAttribute('permissions', 'download', true); } - $share->setAttributes($attributes); - // If either manual permissions are specified or publicUpload // then we need to also update the permissions of the share |