Skip to content

Commit

Permalink
search only returns active users
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed Jul 6, 2022
1 parent 57a14c6 commit 1d58ba5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ public function findSubscriber()
foreach(array('Name', 'EmailAddress', 'Identifier') as $m) {
$hits = $this->CoPerson->$m->search($co, $findUserId, 25);

$coPersonIds = array_merge($coPersonIds, Hash::extract($hits, '{n}.CoPerson.id'));
foreach($hits as $hit) {
if ($hit['CoPerson']['status'] == 'A') {
$coPersonIds[] = $hit['CoPerson']['id'];
}
}
// $coPersonIds = array_merge($coPersonIds, Hash::extract($hits, '{n}.CoPerson.id'));
}
}

Expand Down

0 comments on commit 1d58ba5

Please sign in to comment.