Index: image.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.module,v
retrieving revision 1.184
diff -u -F^f -r1.184 image.module
--- image.module	23 Feb 2006 04:18:48 -0000	1.184
+++ image.module	15 Mar 2006 07:50:38 -0000
@@ -39,7 +39,7 @@ function image_node_info() {
  * Implementation of hook_perm
  */
 function image_perm() {
-  return array('administer images', 'create images');
+  return array('administer images', 'create images', 'view original images');
 }
 
 /**
@@ -232,7 +232,7 @@ function image_link($type, $node, $main 
         }
       }
     }
-    if (variable_get('image_view_original', 0)) {
+    if (user_access('view original images') && $_GET['size'] != '_original') {
       $links[] = l(t('view original'), 'node/'. $node->nid, NULL, 'size=_original');
     }
   }
@@ -865,4 +865,4 @@ function _image_get_vid() {
   return $vid;
 }
 
-?>
\ No newline at end of file
+?>
