Correctly search for existing collaboration results
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
db1096bcfd
commit
42c84b6309
1 changed files with 4 additions and 2 deletions
|
@ -64,8 +64,10 @@ class SearchResult implements ISearchResult {
|
|||
|
||||
$resultArrays = [$this->result['exact'][$type], $this->result[$type]];
|
||||
foreach($resultArrays as $resultArray) {
|
||||
if ($resultArray['value']['shareWith'] === $collaboratorId) {
|
||||
return true;
|
||||
foreach ($resultArray as $result) {
|
||||
if ($result['value']['shareWith'] === $collaboratorId) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue