diff --git a/modules/upload.module b/modules/upload.module index 9853032a462..bee42e1983c 100644 --- a/modules/upload.module +++ b/modules/upload.module @@ -380,12 +380,13 @@ function upload_form($node) { if (count($node->files)) { $output = theme('table', $header, $rows); } + if (user_access('upload files')) { $output .= form_file(t('Attach new file'), "upload", 40); $output .= form_button(t('Attach'), 'fileop'); } - return '
'; + return ' '; } function upload_load($node) { diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 9853032a462..bee42e1983c 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -380,12 +380,13 @@ function upload_form($node) { if (count($node->files)) { $output = theme('table', $header, $rows); } + if (user_access('upload files')) { $output .= form_file(t('Attach new file'), "upload", 40); $output .= form_button(t('Attach'), 'fileop'); } - return ' '; + return ' '; } function upload_load($node) {