diff options
author | Baptiste Fotia <fotia.baptiste@hotmail.com> | 2022-10-11 16:25:16 +0300 |
---|---|---|
committer | Baptiste Fotia <fotia.baptiste@hotmail.com> | 2022-10-11 16:25:16 +0300 |
commit | d6c007e7bb3f3111b15a7f53b2fb48453b7c27d3 (patch) | |
tree | e1f7c55cdc20fba23e23fb50b84234d0b474d232 | |
parent | f7fbdd7ae0686a470ffc4e75650b1233cb672f98 (diff) |
hotfix(Service): Remove the array type return
If we leave ": array" after the array_filter() function. The
"getForApiUser" method could not return the filtered folders.
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
-rw-r--r-- | lib/Service/FoldersFilter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/FoldersFilter.php b/lib/Service/FoldersFilter.php index 1103db62..a1d1b5a0 100644 --- a/lib/Service/FoldersFilter.php +++ b/lib/Service/FoldersFilter.php @@ -39,7 +39,7 @@ class FoldersFilter { */ public function getForApiUser(array $folders): array { $user = $this->userSession->getUser(); - $folders = array_filter($folders, function ($folder) use ($user): array { + $folders = array_filter($folders, function ($folder) use ($user) { foreach ($folder['manage'] as $manager) { if ($manager['type'] === 'group') { if ($this->groupManager->isInGroup($user->getUid(), $manager['id'])) { |