? tests
Index: robotstxt.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/robotstxt/robotstxt.install,v
retrieving revision 1.1.6.8
diff -u -p -r1.1.6.8 robotstxt.install
--- robotstxt.install	19 Mar 2009 19:44:53 -0000	1.1.6.8
+++ robotstxt.install	7 Nov 2009 07:45:33 -0000
@@ -39,7 +39,7 @@ function robotstxt_requirements($phase) 
         );
       }
 
-      // Webservers prefer the robots.txt file on disk and does not allow menu path overwrite. 
+      // Webservers prefer the robots.txt file on disk and does not allow menu path overwrite.
       if (file_exists('./robots.txt')) {
         $requirements['robotstxt_file'] = array(
           'title' => $t('RobotsTxt'),
@@ -50,3 +50,12 @@ function robotstxt_requirements($phase) 
   }
   return $requirements;
 }
+
+/**
+ * Automatically add the 'edit robots.txt' permission to granted users.
+ */
+function robotstxt_update_6100() {
+  $ret = array();
+  $ret[] = update_sql("UPDATE {permission} SET perm = REPLACE(perm, 'administer site configuration', 'administer site configuration, administer robots.txt') WHERE perm LIKE '%administer site configuration%'");
+  return $ret;
+}
Index: robotstxt.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/robotstxt/robotstxt.module,v
retrieving revision 1.4.4.17
diff -u -p -r1.4.4.17 robotstxt.module
--- robotstxt.module	21 Feb 2009 08:59:51 -0000	1.4.4.17
+++ robotstxt.module	7 Nov 2009 07:45:33 -0000
@@ -20,6 +20,13 @@ function robotstxt_help($path, $arg) {
 }
 
 /**
+ * Implementation of hook_perm().
+ */
+function robotstxt_perm() {
+  return array('administer robots.txt');
+}
+
+/**
  * Implementation of hook_menu().
  */
 function robotstxt_menu() {
@@ -33,7 +40,7 @@ function robotstxt_menu() {
     'description' => 'Manage your robots.txt file.',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('robotstxt_admin_settings'),
-    'access arguments' => array('administer site configuration'),
+    'access arguments' => array('administer robots.txt'),
     'file' => 'robotstxt.admin.inc',
   );
 
