Index: admin_menu.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/admin_menu/admin_menu.module,v
retrieving revision 1.43.2.7
diff -u -p -r1.43.2.7 admin_menu.module
--- admin_menu.module	9 Sep 2008 14:39:01 -0000	1.43.2.7
+++ admin_menu.module	22 Oct 2008 14:30:39 -0000
@@ -237,6 +237,7 @@ function admin_menu_menu_alter() {
  * as the current page path or the number of users.
  */
 function admin_menu_translated_menu_link_alter(&$item, $map) {
+  global $user, $base_url;
   static $access_all;
 
   if (!isset($access_all)) {
@@ -257,15 +258,20 @@ function admin_menu_translated_menu_link
   if (!$item['access']) {
     return;
   }
+  if ($item['link_path'] == $base_url . '/update.php' && $user->uid != 1) {
+    $item['access'] = FALSE;
+    return;
+  }
+  if ($item['link_path'] == 'http://drupal.org' && !user_access('display drupal links')) {
+    $item['access'] = FALSE;
+    return;
+  }
   // Fix destination query strings
   if (isset($item['localized_options']['query'])) {
     if ($item['localized_options']['query'] == 'destination') {
       $item['localized_options']['query'] = drupal_get_destination();
     }
   }
-  if (($item['link_path'] == 'http://drupal.org') && !user_access('display drupal links')) {
-    $item['access'] = FALSE;
-  }
   if ($extra = variable_get('admin_menu_display', 0)) {
     $item['title'] .= ' '. $extra[0] .': '. $item[$extra];
   }
