Commit bd055961 authored by Steven Wittens's avatar Steven Wittens

- #25285: Use correct permission for node form comment admin

parent a10ab3da
......@@ -258,7 +258,7 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
case 'load':
return db_fetch_array(db_query("SELECT last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid = %d", $node->nid));
case 'validate':
if (!user_access('administer nodes')) {
if (!user_access('administer comments')) {
// Force default for normal users:
$node->comment = variable_get("comment_$node->type", 2);
}
......
......@@ -258,7 +258,7 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
case 'load':
return db_fetch_array(db_query("SELECT last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid = %d", $node->nid));
case 'validate':
if (!user_access('administer nodes')) {
if (!user_access('administer comments')) {
// Force default for normal users:
$node->comment = variable_get("comment_$node->type", 2);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment