Skip to content

Commit

Permalink
Update CollaboratorSearchPlugin.php
Browse files Browse the repository at this point in the history
Fixes Issue nextcloud#188.

With this change the user is able to share to any circle they have access to view.
  • Loading branch information
Shinrai authored Apr 7, 2018
1 parent da5c15f commit 4d63de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Collaboration/v1/CollaboratorSearchPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CollaboratorSearchPlugin implements ISearchPlugin {
public function search($search, $limit, $offset, ISearchResult $searchResult) {
$wide = $exact = [];

$circles = Circles::listCircles(Circle::CIRCLES_ALL, $search, Member::LEVEL_MEMBER);
$circles = Circles::listCircles(Circle::CIRCLES_ALL, $search, Member::LEVEL_NONE);
foreach ($circles as $circle) {
$entry = $this->addResultEntry($circle);
if (strtolower($circle->getName()) === strtolower($search)) {
Expand Down Expand Up @@ -79,4 +79,4 @@ private function addResultEntry(Circle $circle) {
],
];
}
}
}

0 comments on commit 4d63de4

Please sign in to comment.