diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-03-10 18:13:45 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-03-10 18:13:45 +0000 |
commit | 1f81d0e2222c0abefac10806b5bd005808e5836b (patch) | |
tree | 9fd811397946d4e77e5db54f2abcc7e4a4fcb689 | |
parent | 5689a9852948a68c689c64e1cd48b690871d6072 (diff) | |
download | brdo-1f81d0e2222c0abefac10806b5bd005808e5836b.tar.gz brdo-1f81d0e2222c0abefac10806b5bd005808e5836b.tar.bz2 |
- Fixing bug reported by Alastair Maw. My paranoia got a little bit too much
apparently.
-rw-r--r-- | modules/comment.module | 3 | ||||
-rw-r--r-- | modules/comment/comment.module | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module index 1d7ec04a6..e74c3468a 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -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; } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 1d7ec04a6..e74c3468a 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -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; } |