Skip to content
Snippets Groups Projects
Commit 19e0383e authored by aydreeihn's avatar aydreeihn
Browse files

Merge branch 'ntozier/ldap-relevance' into features_prs/develop-next

* ntozier/ldap-relevance:
  Fix for LDAP/AD auth plugin
parents 2760aa18 f187315b
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,7 @@ class UsersAjaxAPI extends AjaxController {
// Omit already-imported remote users
if ($emails = array_filter($emails)) {
$users->union(User::objects()
->values_flat('id', 'name', 'default_email__address')
->annotate(array('__relevance__' => new SqlCode(1)))
->values_flat('id', 'name', 'default_email__address')
->filter(array(
'emails__address__in' => $emails
)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment