aboutsummaryrefslogtreecommitdiff
path: root/lib/filesystem/FileManager.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-14 11:57:24 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-14 11:57:24 +0100
commitc8b6c7ae16126c1c918e4e78635f1e1b1b6ca627 (patch)
treef991bba9823002edfd7280821fadd162a487fc18 /lib/filesystem/FileManager.php
parentebcaaecdd9ee78567052e1423e35b846bef32eb1 (diff)
adjust new folder types and correct file ref id usage of isFile... methods (some method were given an actual file ref object instead of an id as the interface enforces)
Diffstat (limited to 'lib/filesystem/FileManager.php')
-rw-r--r--lib/filesystem/FileManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem/FileManager.php b/lib/filesystem/FileManager.php
index aafbece..4328fcf 100644
--- a/lib/filesystem/FileManager.php
+++ b/lib/filesystem/FileManager.php
@@ -1250,7 +1250,7 @@ class FileManager
// loop through all files and copy them to the folder path:
foreach ($folder->getFiles() as $file_ref) {
- if ($folder->isFileDownloadable($file_ref, $user_id) || $ignore_perms) {
+ if ($folder->isFileDownloadable($file_ref->id, $user_id) || $ignore_perms) {
//The user (given by user_id) has the required permissions
//to download the file or the permission checks are
//ignored.