Skip to content

Commit

Permalink
Add last change from review
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bishop <[email protected]>
  • Loading branch information
Tetrachloromethane250 authored Mar 1, 2021
1 parent cf501c6 commit da0ddc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Controller/ShareesAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit da0ddc7

Please sign in to comment.