diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-14 11:57:24 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-14 11:57:24 +0100 |
| commit | c8b6c7ae16126c1c918e4e78635f1e1b1b6ca627 (patch) | |
| tree | f991bba9823002edfd7280821fadd162a487fc18 /lib/filesystem/FileManager.php | |
| parent | ebcaaecdd9ee78567052e1423e35b846bef32eb1 (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.php | 2 |
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. |
