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-18 15:03:12 +0300
committerBaptiste Fotia <fotia.baptiste@hotmail.com>2022-10-18 15:05:42 +0300
commit41b92eb37351b492f085a6db6559b11fb54c0001 (patch)
tree59b62a99625c18c45ba66bf200db4b10c537fd30
parent73a87f4b50653f18cbe2e54e536d12be6784091f (diff)
revert(service): Return boolean in the callback
We can return a boolean type in the callback from the array_filter. But, we cannot define the return type for the callback. https://github.com/nextcloud/groupfolders/pull/2072#issuecomment-1280690145 Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
-rw-r--r--lib/Service/FoldersFilter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/FoldersFilter.php b/lib/Service/FoldersFilter.php
index a1d1b5a0..4723e474 100644
--- a/lib/Service/FoldersFilter.php
+++ b/lib/Service/FoldersFilter.php
@@ -43,11 +43,11 @@ class FoldersFilter {
foreach ($folder['manage'] as $manager) {
if ($manager['type'] === 'group') {
if ($this->groupManager->isInGroup($user->getUid(), $manager['id'])) {
- return $folder;
+ return true;
}
}
elseif ($manager['id'] === $user->getUid()) {
- return $folder;
+ return true;
}
}
});