- Fixing bug reported by Alastair Maw. My paranoia got a little bit too much
apparently.4.2.x
parent
5689a98529
commit
1f81d0e222
|
@ -1503,7 +1503,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
|
||||||
break;
|
break;
|
||||||
case "validate":
|
case "validate":
|
||||||
if (!user_access("administer nodes")) {
|
if (!user_access("administer nodes")) {
|
||||||
unset($node->comment);
|
// Force default for normal users:
|
||||||
|
$node->comment = variable_get("comment_$node->type", 2);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1503,7 +1503,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
|
||||||
break;
|
break;
|
||||||
case "validate":
|
case "validate":
|
||||||
if (!user_access("administer nodes")) {
|
if (!user_access("administer nodes")) {
|
||||||
unset($node->comment);
|
// Force default for normal users:
|
||||||
|
$node->comment = variable_get("comment_$node->type", 2);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue