Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-10-17 15:34:10 +0300
committerGitHub <noreply@github.com>2022-10-17 15:34:10 +0300
commit9d7c91972c29117ac93fdaeed876ea99bf4d2f61 (patch)
tree4f133d0aecfaab1bc18c03cb4dcc71de6542c3fb
parent20a2076f0081dbad76d8a210abaa0809e3209e47 (diff)
parentb990af52d2ec8692f1d03bf51ad1ad5e11da500d (diff)
Merge pull request #2529 from nextcloud/backport/2511/stable24
-rw-r--r--lib/TokenManager.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/TokenManager.php b/lib/TokenManager.php
index 8693daf1..9fd75beb 100644
--- a/lib/TokenManager.php
+++ b/lib/TokenManager.php
@@ -155,7 +155,6 @@ class TokenManager {
}
// disable download if at least one shared access has it disabled
-
foreach ($files as $file) {
$storage = $file->getStorage();
// using string as we have no guarantee that "files_sharing" app is loaded
@@ -166,7 +165,7 @@ class TokenManager {
/** @var SharedStorage $storage */
$share = $storage->getShare();
$attributes = $share->getAttributes();
- if ($attributes !== null && !$attributes->getAttribute('permissions', 'download')) {
+ if ($attributes !== null && $attributes->getAttribute('permissions', 'download') === false) {
$hideDownload = true;
break;
}