Issue #1856142 by kiamlaluno: Fix typo in node_query_node_access_alter() comment
parent
dd8e0db601
commit
d06d55ce13
|
@ -3028,8 +3028,8 @@ function node_query_node_access_alter(AlterableInterface $query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If $account can bypass node access, or there are no node access modules,
|
// If $account can bypass node access, or there are no node access modules,
|
||||||
// or the operation is 'view' and the $acount has a global view grant (i.e.,
|
// or the operation is 'view' and the $account has a global view grant
|
||||||
// a view grant for node ID 0), we don't need to alter the query.
|
// (such as a view grant for node ID 0), we don't need to alter the query.
|
||||||
if (user_access('bypass node access', $account)) {
|
if (user_access('bypass node access', $account)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue