Index: modules/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment.module,v
retrieving revision 1.410
diff -u -p -r1.410 comment.module
--- modules/comment.module	3 Jan 2006 23:04:23 -0000	1.410
+++ modules/comment.module	4 Jan 2006 23:33:05 -0000
@@ -236,22 +236,30 @@ function comment_form_alter($form_id, &$
     if ($form['type']['#value'] .'_node_settings' == $form_id) {
       $form['workflow']['comment_'. $form['type']['#value']] = array('#type' => 'radios', '#title' => t('Default comment setting'), '#default_value' => variable_get('comment_'. $form['type']['#value'], COMMENT_NODE_READ_WRITE), '#options' => array(t('Disabled'), t('Read only'), t('Read/Write')), '#description' => t('Users with the <em>administer comments</em> permission will be able to override this setting.'));
     }
-    if ($form['type']['#value'] .'_node_form' == $form_id && user_access('administer comments')) {
+    if ($form['type']['#value'] .'_node_form' == $form_id) {
       $node = $form['#node'];
       $selected = isset($node->comment) ? $node->comment : variable_get("comment_$node->type", COMMENT_NODE_READ_WRITE);
-      $form['user_comments'] = array(
-        '#type' => 'fieldset',
-        '#title' => t('User comments'),
-        '#collapsible' => TRUE,
-        '#collapsed' => TRUE,
-        '#weight' => 30,
-      );
-      $form['user_comments']['comment'] = array(
-        '#type' => 'radios',
-        '#parents' => array('comment'),
-        '#default_value' => $selected,
-        '#options' => array(t('Disabled'), t('Read only'), t('Read/Write')),
-      );
+      if (user_access('administer comments')) {
+        $form['user_comments'] = array(
+          '#type' => 'fieldset',
+          '#title' => t('User comments'),
+          '#collapsible' => TRUE,
+          '#collapsed' => TRUE,
+          '#weight' => 30,
+        );
+        $form['user_comments']['comment'] = array(
+          '#type' => 'radios',
+          '#parents' => array('comment'),
+          '#default_value' => $selected,
+          '#options' => array(t('Disabled'), t('Read only'), t('Read/Write')),
+        );
+      }
+      else {
+        $form['user_comments']['comment'] = array(
+          '#type' => 'value',
+          '#value' => $selected,
+        );
+      }
     }
   }
 }
@@ -267,11 +275,6 @@ function comment_nodeapi(&$node, $op, $a
 
     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 comments')) {
-        // Force default for normal users:
-        $node->comment = variable_get("comment_$node->type", COMMENT_NODE_READ_WRITE);
-      }
       break;
 
     case 'insert':
