Commit 1f81d0e2 authored by Kjartan's avatar Kjartan

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

  apparently.
parent 5689a985
...@@ -1503,7 +1503,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) { ...@@ -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) { ...@@ -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;
} }
......
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