Cleanup from #72487.

5.x
Neil Drumm 2006-11-12 19:07:29 +00:00
parent f1581984b4
commit a08f711b3f
1 changed files with 1 additions and 1 deletions

View File

@ -2614,7 +2614,7 @@ function node_access($op, $node = NULL) {
// node_access table.
if ($op != 'create' && $node->nid && $node->status) {
$grants = array();
foreach (node_access_grants($op, $uid) as $realm => $gids) {
foreach (node_access_grants($op) as $realm => $gids) {
foreach ($gids as $gid) {
$grants[] = "(gid = $gid AND realm = '$realm')";
}