diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 320c99e..541b7ce 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -889,12 +889,13 @@ function node_form_system_themes_admin_form_submit($form, FormStateInterface $fo * default home page at path 'node', an RSS feed, a recent content block, etc.), * the process above is followed except that hook_node_access() is not called on * each node for performance reasons and for proper functioning of the pager - * system. When adding a node listing to your module, be sure to use an entity - * query, which will add a tag of "node_access". This will allow modules dealing - * with node access to ensure only nodes to which the user has access are - * retrieved, through the use of hook_query_TAG_alter(). See the - * @link entity_api Entity API topic @endlink for more information on entity - * queries. + * system. See the @link entity_api Entity API topic @endlink for more + * information on entity queries. This will make sure that your base query does + * not allow for the display of unpublished nodes to users who should not have + * access to the node. Conditions need to be added to check the published status + * of the node. Tagging a query with "node_access" does not automatically check + * the published/unpublished status of nodes, so your base query is responsible + * for ensuring that unpublished nodes are not displayed to inappropriate users. * * Note: Even a single module returning an AccessResultInterface object from * hook_node_access() whose isForbidden() method equals TRUE will block access