Commit 490b70cd authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't send view access notifications to group members for newly copied group views (bug #627853)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
(cherry picked from commit 473a309d)
parent 296f316e
......@@ -341,13 +341,10 @@ class View {
if (isset($viewdata['group'])) {
// By default, group views should be visible to the group
$view->set_access(array(array(
'type' => 'group',
'id' => $viewdata['group'],
'startdate' => null,
'stopdate' => null,
'role' => null
)));
insert_record('view_access', (object) array(
'view' => $view->get('id'),
'group' => $viewdata['group'],
));
}
return new View($view->get('id')); // Reread to ensure defaults are set
......
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