Index: modules/upload/upload.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/upload/upload.module,v
retrieving revision 1.199
diff -u -p -r1.199 upload.module
--- modules/upload/upload.module	20 Feb 2008 13:46:42 -0000	1.199
+++ modules/upload/upload.module	26 Feb 2008 06:42:42 -0000
@@ -497,27 +497,26 @@ function _upload_form($node) {
     }
   }
 
-  if (user_access('upload files')) {
-    $limits = _upload_file_limits($user);
-    $form['new']['#weight'] = 10;
-    $form['new']['upload'] = array(
-      '#type' => 'file',
-      '#title' => t('Attach new file'),
-      '#size' => 40,
-      '#description' => ($limits['resolution'] ? t('Images are larger than %resolution will be resized. ', array('%resolution' => $limits['resolution'])) : '') . t('The maximum upload size is %filesize. Only files with the following extensions may be uploaded: %extensions. ', array('%extensions' => $limits['extensions'], '%filesize' => format_size($limits['file_size']))),
-    );
-    $form['new']['attach'] = array(
-      '#type' => 'submit',
-      '#value' => t('Attach'),
-      '#name' => 'attach',
-      '#ahah' => array(
-        'path' => 'upload/js',
-        'wrapper' => 'attach-wrapper',
-        'progress' => array('type' => 'bar', 'message' => t('Please wait...')),
-      ),
-      '#submit' => array('node_form_submit_build_node'),
-    );
-  }
+  $limits = _upload_file_limits($user);
+  $form['#access'] = user_access('upload files');
+  $form['new']['#weight'] = 10;
+  $form['new']['upload'] = array(
+    '#type' => 'file',
+    '#title' => t('Attach new file'),
+    '#size' => 40,
+    '#description' => ($limits['resolution'] ? t('Images are larger than %resolution will be resized. ', array('%resolution' => $limits['resolution'])) : '') . t('The maximum upload size is %filesize. Only files with the following extensions may be uploaded: %extensions. ', array('%extensions' => $limits['extensions'], '%filesize' => format_size($limits['file_size']))),
+  );
+  $form['new']['attach'] = array(
+    '#type' => 'submit',
+    '#value' => t('Attach'),
+    '#name' => 'attach',
+    '#ahah' => array(
+      'path' => 'upload/js',
+      'wrapper' => 'attach-wrapper',
+      'progress' => array('type' => 'bar', 'message' => t('Please wait...')),
+    ),
+    '#submit' => array('node_form_submit_build_node'),
+  );
 
   // This value is used in upload_js().
   $form['current']['vid'] = array('#type' => 'hidden', '#value' => isset($node->vid) ? $node->vid : 0);
