Skip to content
Snippets Groups Projects

Issue #1822440: "Content access" filter should check for node_grants implementations before adding node access grant queries

Open Issue #1822440: "Content access" filter should check for node_grants implementations before adding node access grant queries
Files
3
@@ -36,7 +36,7 @@ public function canExpose() {
*/
public function query() {
$account = $this->view->getUser();
if (!$account->hasPermission('bypass node access')) {
if (!$account->hasPermission('bypass node access') && $this->moduleHandler->hasImplementations('node_grants')) {
$table = $this->ensureMyTable();
$grants = $this->query->getConnection()->condition('OR');
foreach (node_access_grants('view', $account) as $realm => $gids) {
Loading