Commit 3e2b6679 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

Revert "Made non-public groups invisible in search results."

As discussed on IRC, it appeared that non-public groups are designed solely to
control group visibility for people who are not the members of site (not
logged in users). Thus, the patch is reverted.

This reverts commit 284d8620

.
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent 51e90d63
......@@ -535,13 +535,10 @@ class PluginSearchInternal extends PluginSearch {
}
if ($type == 'member') {
$sql .= 'AND (id IN (' . $grouproles . '))';
$sql .= 'AND id IN (' . $grouproles . ')';
}
else if ($type == 'notmember') {
$sql .= 'AND public = 1 AND (id NOT IN (' . $grouproles . '))';
}
else {
$sql .= 'AND (public = 1 OR id IN (' . $grouproles . '))';
$sql .= 'AND id NOT IN (' . $grouproles . ')';
}
$count = get_field_sql('SELECT COUNT(*) '.$sql, $values);
......
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