From da0ddc7b7bf76c5dff8ea7fd1b703454090e6cab Mon Sep 17 00:00:00 2001 From: Tetrachloromethane250 <79449630+Tetrachloromethane250@users.noreply.github.com> Date: Mon, 1 Mar 2021 09:50:01 +0000 Subject: [PATCH] Add last change from review Signed-off-by: Daniel Bishop --- apps/files_sharing/lib/Controller/ShareesAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index 40ab12efad4e7..a167e53ec4f52 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -161,7 +161,7 @@ public function search(string $search = '', string $itemType = null, int $page = if ($this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { $excludedGroups = (array)json_decode($this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''), true); $usersGroups = $this->groupManager->getUserGroupIds($this->userManager->get($this->userId)); - if (array_intersect($usersGroups, $excludedGroups) == $usersGroups) { + if (array_intersect($usersGroups, $excludedGroups) === $usersGroups) { return new DataResponse($this->result); } }