mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #52685 from nextcloud/backport/52543/stable30
[stable30] fix(share): assume download enabled on federated share
This commit is contained in:
commit
6081bd0767
1 changed files with 2 additions and 0 deletions
|
|
@ -2089,6 +2089,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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue