summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--content_types/node.inc7
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 83607ec..0b6689d 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -16,3 +16,4 @@ Panels 4.7.x-dev
o Can now set role-based access control on panels
o #86630: Add option to retain title on Views.
o #110449: Respect Views access settings. Requires Views 1.6 to work.
+ o #100793: Respect Node access settings.
diff --git a/content_types/node.inc b/content_types/node.inc
index 3ef4d54..0acd090 100644
--- a/content_types/node.inc
+++ b/content_types/node.inc
@@ -16,9 +16,14 @@ function panels_node_panels_content_types() {
*/
function panels_content_node($conf) {
$node = node_load($conf['nid']);
+ if (!node_access('view', $node)) {
+ return;
+ }
+
if ($conf['suppress_title']) {
- $node->title='';
+ $node->title = '';
}
+
$output = node_view($node, $conf['teaser'], FALSE, $conf['links']);
return $output;
}