Index: modules/imce/imce.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imce/imce.module,v
retrieving revision 1.7.2.6
diff -u -r1.7.2.6 imce.module
--- modules/imce/imce.module	15 May 2007 14:46:03 -0000	1.7.2.6
+++ modules/imce/imce.module	22 Oct 2007 15:30:54 -0000
@@ -25,7 +25,7 @@
  * Implementation of hook_perm().
  */
 function imce_perm() {
-  return array('view files', 'upload files', 'delete files', 'limitless upload');
+  return array('view files', 'upload files using imce', 'delete files', 'limitless upload');
 }
 
 /**
@@ -46,7 +46,7 @@
     if (arg(1)=='delete' && user_access('delete files') && ($delpath = file_check_location($_GET['delpath'], imce_get_directory()))) {
       imce_delete_file($delpath);
     }
-    elseif (arg(1)=='upload' && user_access('upload files') && $_FILES['thefile']) {
+    elseif (arg(1)=='upload' && user_access('upload files using imce') && $_FILES['thefile']) {
       imce_copy_uploaded($_FILES['thefile'], imce_get_directory());
     }
     drupal_goto('imce/browse');
@@ -93,7 +93,7 @@
   $_SESSION['imcetotal'] = $files['size'];
 
 //upload form
-  $upload_form = user_access('upload files') ? ('<form action="'.url('imce/upload').'" method="post" id="uploadform" enctype="multipart/form-data">
+  $upload_form = user_access('upload files using imce') ? ('<form action="'.url('imce/upload').'" method="post" id="uploadform" enctype="multipart/form-data">
   <input type="file" name="thefile" id="thefile" size="40">
   <input type="hidden" name="token" value="'. $token .'">
   <input type="submit" name="submit" value="'.t('Upload File').'">'.
