Commit 71e08495 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't add invisible access records when adding views to collections


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent ffccbbc1
......@@ -381,7 +381,7 @@ class Collection {
return;
}
$select = 'view IN (' . join(',', $viewids) . ')';
$select = 'view IN (' . join(',', $viewids) . ') AND visible = 1';
if (!$access = get_records_select_array('view_access', $select)) {
return;
......
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