Commit 6c73fa6e authored by good_man's avatar good_man

Issue #1147526: Unpublished nodes displayed to anonymous users

parent 2a925d87
......@@ -111,7 +111,7 @@ function content_access_node_grants($account, $op) {
* Implements hook_node_access_records().
*/
function content_access_node_access_records($node) {
if (content_access_disabling()) {
if (content_access_disabling() || !$node->status) {
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