Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Fotia <fotia.baptiste@hotmail.com>2022-10-11 16:25:16 +0300
committerBaptiste Fotia <fotia.baptiste@hotmail.com>2022-10-11 16:25:16 +0300
commitd6c007e7bb3f3111b15a7f53b2fb48453b7c27d3 (patch)
treee1f7c55cdc20fba23e23fb50b84234d0b474d232
parentf7fbdd7ae0686a470ffc4e75650b1233cb672f98 (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.php2
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'])) {