diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-02-20 10:26:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-02-20 10:26:35 +0000 |
commit | 916b11afabacf5b7e142ce3fe370a24a80c15b3e (patch) | |
tree | 8b2d8ef649c246995d9c8b399eb9fbe7aef9a68c /modules/upload | |
parent | 09644fd0a9f845d3ce22cd1c8487d01b8f7b71df (diff) | |
download | brdo-916b11afabacf5b7e142ce3fe370a24a80c15b3e.tar.gz brdo-916b11afabacf5b7e142ce3fe370a24a80c15b3e.tar.bz2 |
- Patch #377870 by mr.baileys: removed unnecessary access check.
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index d61433aac..339a7bebb 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -343,9 +343,9 @@ function upload_nodeapi_load($nodes, $types) { function upload_nodeapi_view($node, $teaser, $page) { if (isset($node->files) && user_access('view uploaded files')) { // Add the attachments list to node body with a heavy - // weight to ensure they're below other elements + // weight to ensure they're below other elements. if (count($node->files)) { - if (!$teaser && user_access('view uploaded files')) { + if (!$teaser) { $node->content['files'] = array( '#markup' => theme('upload_attachments', $node->files), '#weight' => 50, |