Commit 9fedce81 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't return system user's views in view search


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 0735c2e1
......@@ -2302,7 +2302,7 @@ class View {
if (!$admin) { // only show the grouphomepage viewtype to admins
$where .= ",'grouphomepage'";
}
$where .= ")";
$where .= ") AND 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