diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-20 17:08:01 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-20 17:08:01 +0100 |
| commit | 1257022fb3baa2ab6674437bb86422615f590160 (patch) | |
| tree | 1f5700e0b2aa4209aaf1e5931a03e2f559f9c3fe /lib/filesystem/PublicFolder.php | |
| parent | c8b6c7ae16126c1c918e4e78635f1e1b1b6ca627 (diff) | |
use objects instead of idstic-4946
Diffstat (limited to 'lib/filesystem/PublicFolder.php')
| -rw-r--r-- | lib/filesystem/PublicFolder.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/filesystem/PublicFolder.php b/lib/filesystem/PublicFolder.php index 285a0df..439ab04 100644 --- a/lib/filesystem/PublicFolder.php +++ b/lib/filesystem/PublicFolder.php @@ -118,12 +118,12 @@ class PublicFolder extends StandardFolder /** * Files in PublicFolders are always downloadable. * - * @param string $file_ref_id The ID to a FileRef. - * @param string $user_id The user who wishes to downlaod the file. + * @param FileRef $file_ref The ID to a FileRef. + * @param string $user_id The user who wishes to downlaod the file. * * @return bool True */ - public function isFileDownloadable(string $file_ref_id, string $user_id): bool + public function isFileDownloadable(FileRef $file_ref, string $user_id): bool { //public folder => everyone can download a file return true; @@ -132,12 +132,12 @@ class PublicFolder extends StandardFolder /** * Files in PublicFolders are editable for the owner only. * - * @param string $file_ref_id The ID to a FileRef. - * @param string $user_id The user who wishes to edit the file. + * @param FileRef $file_ref The ID to a FileRef. + * @param string $user_id The user who wishes to edit the file. * * @return bool True, if the user is the owner of the file, false otherwise. */ - public function isFileEditable(string $file_ref_id, string $user_id): bool + public function isFileEditable(FileRef $file_ref, string $user_id): bool { //only the owner may edit files return $this->range_id === $user_id; @@ -146,12 +146,12 @@ class PublicFolder extends StandardFolder /** * Files in PublicFolders are writable for the owner only. * - * @param string $file_ref_id The ID to a FileRef. - * @param string $user_id The user who wishes to write to the file. + * @param FileRef $file_ref The ID to a FileRef. + * @param string $user_id The user who wishes to write to the file. * * @return bool True, if the user is the owner of the file, false otherwise. */ - public function isFileWritable(string $file_ref_id, string $user_id): bool + public function isFileWritable(FileRef $file_ref, string $user_id): bool { //only the owner may delete files return $this->range_id === $user_id; |
