Index: imagefield_gallery.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/imagefield_gallery/imagefield_gallery.module,v
retrieving revision 1.6
diff -u -p -r1.6 imagefield_gallery.module
--- imagefield_gallery.module	4 Mar 2008 15:50:58 -0000	1.6
+++ imagefield_gallery.module	11 Apr 2008 05:11:00 -0000
@@ -29,7 +29,7 @@ function imagefield_gallery_menu($may_ca
       'description' => t('Configure the settings for your Imagefield Galleries.'),
       'callback' => 'drupal_get_form',
       'callback arguments' => 'imagefield_gallery_admin',
-      'access' => user_access('access administration pages'),
+      'access' => user_access('administer imagefield gallery'),
       'type' => MENU_NORMAL_ITEM
     );
     $items[] = array(
@@ -38,7 +38,7 @@ function imagefield_gallery_menu($may_ca
       'description' => t('Configure the Types of Content on which you would like the Imagefield Gallery to appear.'),
       'callback' => 'drupal_get_form',
       'callback arguments' => 'imagefield_gallery_content_types',
-      'access' => user_access('access administration pages'),
+      'access' => user_access('administer imagefield gallery'),
       'type' => MENU_NORMAL_ITEM
     );
   }
@@ -46,6 +46,13 @@ function imagefield_gallery_menu($may_ca
 }
 
 /**
+ * implementation of hook_perm()
+ */
+function imagefield_gallery_perm() {
+  return array('administer imagefield gallery');
+}
+
+/**
  * implementation of hook_nodeapi()
  * imagefield_gallery_nodeapi() is open for other gallery modules to hook into
  * this can be accomplished through a simple naming convention i.e. in the cased
