From 06e7197729392957a9d983273e86651e6d885be9 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Mon, 30 Nov 2015 11:32:35 -0800 Subject: [PATCH] Issue #690120 by ricsonhoo: Call node_access_acquire_grants directly in xmlsitemap_node_create_link to get around core bug. --- xmlsitemap_node/xmlsitemap_node.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmlsitemap_node/xmlsitemap_node.module b/xmlsitemap_node/xmlsitemap_node.module index 3d0e534..9ae9cc0 100644 --- a/xmlsitemap_node/xmlsitemap_node.module +++ b/xmlsitemap_node/xmlsitemap_node.module @@ -200,6 +200,10 @@ function xmlsitemap_node_create_link(stdClass $node) { //unset($access[0][$node->nid]); //node_access_acquire_grants($node); + // Temporary fix per https://www.drupal.org/node/690120#comment-2502430 + // in order to get around a core bug. + node_access_acquire_grants($node); + // The following values must always be checked because they are volatile. $node->xmlsitemap['loc'] = $uri['path']; $node->xmlsitemap['lastmod'] = count($timestamps) ? max($timestamps) : 0; -- 1.9.3 (Apple Git-50)