? adminrole-D5-901876.patch
Index: adminrole.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/adminrole/adminrole.module,v
retrieving revision 1.2.2.13
diff -u -p -r1.2.2.13 adminrole.module
--- adminrole.module	14 Aug 2010 17:59:57 -0000	1.2.2.13
+++ adminrole.module	4 Sep 2010 00:19:15 -0000
@@ -8,6 +8,27 @@
  */
 
 /**
+ * Implements hook_perm().
+ */
+function adminrole_perm() {
+  return array(
+    'administer software updates',
+  );
+}
+
+/**
+ * Implements hook_init().
+ */
+function adminrole_init() {
+  // Only run this code if the script being executed is update.php
+  if(preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
+    if(user_access('administer software updates')) {
+      $GLOBALS['access_check'] = false;
+    }
+  }
+}
+
+/**
  * Implement hook_form_alter().
  */
 function adminrole_form_alter($form_id, &$form) {
