Commit 97acfbd6 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

When changing view access, check group role is set to remove warning from logs

parent 70058547
......@@ -608,7 +608,7 @@ class View {
case 'group':
$accessrecord->group = $item['id'];
if ($item['role']) {
if (isset($item['role']) && strlen($item['role'])) {
// Don't insert a record for a role the group doesn't have
$roleinfo = group_get_role_info($item['id']);
if (!isset($roleinfo[$item['role']])) {
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