Commit 5e30b486 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix view_search (broken for group views by 9fedce81)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent f6d2e379
......@@ -2303,7 +2303,7 @@ class View {
if (!$admin) { // only show the grouphomepage viewtype to admins
$where .= ",'grouphomepage'";
}
$where .= ") AND v.owner != 0";
$where .= ") AND (v.owner IS NULL OR v.owner > 0)";
if ($ownedby) {
$where .= ' AND v.' . self::owner_sql($ownedby);
......
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