summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-05 20:26:25 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-05 20:26:25 +0000
commitb47e4e16d35544eaa216ea716ddac703ffd948c6 (patch)
tree0bfd97ac0142be061ee51c9973a685ec3650d54b
parentc6b1eaa20d665ca608d31536f995451634be3963 (diff)
downloadbrdo-b47e4e16d35544eaa216ea716ddac703ffd948c6.tar.gz
brdo-b47e4e16d35544eaa216ea716ddac703ffd948c6.tar.bz2
- Patch #9794 by JonBob: a bug introduced late in the review process makes individual node views inaccessible to users who should have permission. This does not affect node listings, so was missed.
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index 8bb328dcf..27d050d89 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1593,7 +1593,7 @@ function node_access($op, $node = NULL) {
}
}
$sql .= implode(',', $grants) .') AND grant_'. $op .' = 1';
- $result = db_query($sql, $nid);
+ $result = db_query($sql, $node->nid);
return (db_result($result));
}
return FALSE;
diff --git a/modules/node/node.module b/modules/node/node.module
index 8bb328dcf..27d050d89 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1593,7 +1593,7 @@ function node_access($op, $node = NULL) {
}
}
$sql .= implode(',', $grants) .') AND grant_'. $op .' = 1';
- $result = db_query($sql, $nid);
+ $result = db_query($sql, $node->nid);
return (db_result($result));
}
return FALSE;