diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2025-04-29 15:33:42 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2025-05-06 14:48:28 -0100 |
commit | cc967821779615c61cdf707601d71822b80ece5b (patch) | |
tree | 265c39ad2889d346989f0ce6454d80f7b161ac92 /apps/files_sharing/lib/Controller | |
parent | 598579396cf522e7d56f41e28c4183b75de8045f (diff) | |
download | nextcloud-server-cc967821779615c61cdf707601d71822b80ece5b.tar.gz nextcloud-server-cc967821779615c61cdf707601d71822b80ece5b.zip |
fix(share): assume download enabled on federated sharefix/52060/manage-download-on-federated-reshare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 81ead3c4978..446db0b8fcc 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -2118,6 +2118,8 @@ class ShareAPIController extends OCSController { $hideDownload = $hideDownload && $originalShare->getHideDownload(); // allow download if already allowed by previous share or when the current share allows downloading $canDownload = $canDownload || $inheritedAttributes === null || $inheritedAttributes->getAttribute('permissions', 'download') !== false; + } elseif ($node->getStorage()->instanceOfStorage(Storage::class)) { + $canDownload = true; // in case of federation storage, we can expect the download to be activated by default } } |