Commit 6434290e authored by japerry's avatar japerry

Maintain permissions for referenced content fields for book module.

parent fc1ea259
......@@ -43,7 +43,9 @@ function ctools_book_parent_context($context, $conf) {
// Load the node.
$node = node_load($nid);
// Generate the context.
return ctools_context_create('node', $node);
if (node_access('view', $node)) {
return ctools_context_create('node', $node);
}
}
}
}
......
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