aboutsummaryrefslogtreecommitdiff
path: root/lib/filesystem/FileManager.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-20 17:08:01 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-20 17:08:01 +0100
commit1257022fb3baa2ab6674437bb86422615f590160 (patch)
tree1f5700e0b2aa4209aaf1e5931a03e2f559f9c3fe /lib/filesystem/FileManager.php
parentc8b6c7ae16126c1c918e4e78635f1e1b1b6ca627 (diff)
use objects instead of idstic-4946
Diffstat (limited to 'lib/filesystem/FileManager.php')
-rw-r--r--lib/filesystem/FileManager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/filesystem/FileManager.php b/lib/filesystem/FileManager.php
index 4328fcf..4ca5621 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->id, $user_id) || $ignore_perms) {
+ if ($folder->isFileDownloadable($file_ref, $user_id) || $ignore_perms) {
//The user (given by user_id) has the required permissions
//to download the file or the permission checks are
//ignored.
@@ -1302,7 +1302,7 @@ class FileManager
//specified by $user_id:
if ($folder->isReadable($user_id)) {
foreach ($folder_files as $folder_file) {
- if ($folder->isFileDownloadable($folder_file->id, $user_id)) {
+ if ($folder->isFileDownloadable($folder_file, $user_id)) {
$num_files++;
}
}
@@ -1316,7 +1316,7 @@ class FileManager
if ($user_id) {
//user-ID is set: only if the file is downloadable
//it will be counted!
- if ($folder->isFileDownloadable($file->id, $user_id)) {
+ if ($folder->isFileDownloadable($file, $user_id)) {
$num_files++;
}
} else {