Commit 646ffb08 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

added check of deletion when searching for users

parent b6524c93
......@@ -107,7 +107,7 @@ class PluginSearchInternal extends PluginSearch {
}
}
$sql .= 'WHERE
u.id <> 0 AND u.active = 1
u.id <> 0 AND u.active = 1 AND u.deleted = 0
AND ((
u.preferredname ILIKE \'%\' || ? || \'%\'
)
......@@ -142,7 +142,7 @@ class PluginSearchInternal extends PluginSearch {
}
}
$sql .= 'WHERE
u.id <> 0 AND u.active = 1
u.id <> 0 AND u.active = 1 AND u.deleted = 0
AND ((
u.preferredname ILIKE \'%\' || ? || \'%\'
)
......@@ -201,7 +201,7 @@ class PluginSearchInternal extends PluginSearch {
}
}
$sql .= 'WHERE
u.id <> 0 AND u.active = 1
u.id <> 0 AND u.active = 1 AND u.deleted = 0
AND ((
u.preferredname LIKE \'%\' || ? || \'%\'
)
......@@ -241,7 +241,7 @@ class PluginSearchInternal extends PluginSearch {
}
}
$sql .= 'WHERE
u.id <> 0 AND u.active = 1
u.id <> 0 AND u.active = 1 AND u.deleted = 0
AND ((
u.preferredname LIKE \'%\' || ? || \'%\'
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment