? adminrole-901876.patch
Index: adminrole.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/adminrole/adminrole.module,v
retrieving revision 1.2.2.8.2.11
diff -u -p -r1.2.2.8.2.11 adminrole.module
--- adminrole.module	14 Aug 2010 17:59:20 -0000	1.2.2.8.2.11
+++ adminrole.module	3 Sep 2010 22:34:08 -0000
@@ -8,6 +8,29 @@
  */
 
 /**
+ * Implements hook_perm().
+ */
+function adminrole_perm() {
+  return array(
+    'administer software updates',
+  );
+}
+
+/**
+ * Implements hook_boot().
+ */
+function adminrole_boot() {
+  // Only run this code if the script being executed is update.php
+  if(preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
+    // Load the user module so that we have access to the user_access() function
+    drupal_load('module', 'user');
+    if(user_access('administer software updates')) {
+      $GLOBALS['update_free_access'] = TRUE;
+    }
+  }
+}
+
+/**
  * Implements hook_form_FORM_ID_alter().
  */
 function adminrole_form_user_admin_settings_alter(&$form, $form_state) {
