Skip to content

Commit 6081bd0

Browse files
Merge pull request #52685 from nextcloud/backport/52543/stable30
[stable30] fix(share): assume download enabled on federated share
2 parents 1c2e472 + 9a5e27d commit 6081bd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,8 @@ private function checkInheritedAttributes(IShare $share): void {
20892089
$hideDownload = $hideDownload && $originalShare->getHideDownload();
20902090
// allow download if already allowed by previous share or when the current share allows downloading
20912091
$canDownload = $canDownload || $inheritedAttributes === null || $inheritedAttributes->getAttribute('permissions', 'download') !== false;
2092+
} elseif ($node->getStorage()->instanceOfStorage(Storage::class)) {
2093+
$canDownload = true; // in case of federation storage, we can expect the download to be activated by default
20922094
}
20932095
}
20942096

0 commit comments

Comments
 (0)