comparison core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
83 // Pass the query to the node access control. 83 // Pass the query to the node access control.
84 $this->reAlterQuery($query, 'node_access', $node_alias); 84 $this->reAlterQuery($query, 'node_access', $node_alias);
85 85
86 // Passing the query to node_query_node_access_alter() is sadly 86 // Passing the query to node_query_node_access_alter() is sadly
87 // insufficient for nodes. 87 // insufficient for nodes.
88 // @see SelectionEntityTypeNode::entityQueryAlter() 88 // @see \Drupal\node\Plugin\EntityReferenceSelection\NodeSelection::buildEntityQuery()
89 if (!$this->currentUser->hasPermission('bypass node access') && !count($this->moduleHandler->getImplementations('node_grants'))) { 89 if (!$this->currentUser->hasPermission('bypass node access') && !count($this->moduleHandler->getImplementations('node_grants'))) {
90 $query->condition($node_alias . '.status', 1); 90 $query->condition($node_alias . '.status', 1);
91 } 91 }
92 } 92 }
93 93