- Fixing bug reported by Alastair Maw. My paranoia got a little bit too much

apparently.
4.2.x
Kjartan Mannes 2003-03-10 18:13:45 +00:00
parent 5689a98529
commit 1f81d0e222
2 changed files with 4 additions and 2 deletions

View File

@ -1503,7 +1503,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
break;
case "validate":
if (!user_access("administer nodes")) {
unset($node->comment);
// Force default for normal users:
$node->comment = variable_get("comment_$node->type", 2);
}
break;
}

View File

@ -1503,7 +1503,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
break;
case "validate":
if (!user_access("administer nodes")) {
unset($node->comment);
// Force default for normal users:
$node->comment = variable_get("comment_$node->type", 2);
}
break;
}