--- teleport.module	2008-03-07 17:46:51.000000000 -0500
+++ teleport.module	2008-03-19 11:08:45.000000000 -0400
@@ -79,14 +79,17 @@
 
 function teleport_init() {
   // Don't add js if we're autocompleting, to avoid conflicts with devel_themer.
-  if (user_access("use teleport") && !(arg(0) == 'teleport' && arg(1) == 'autocomplete_title')) {
-    drupal_add_css(drupal_get_path('module', 'teleport') . '/teleport.css');
-    drupal_add_js(drupal_get_path('module', 'teleport') . '/teleport.js');
-    drupal_add_js(array(
-    'teleport' => array(
-      'form' => drupal_get_form("teleport_form"),
-      'hotkey' => strtoupper(TELEPORT_HOTKEY),
-      )), 'setting');
+  if (function_exists('user_access')) {
+    // Check the state of the bootstrap
+    if (user_access("use teleport") && !(arg(0) == 'teleport' && arg(1) == 'autocomplete_title')) {
+      drupal_add_css(drupal_get_path('module', 'teleport') . '/teleport.css');
+      drupal_add_js(drupal_get_path('module', 'teleport') . '/teleport.js');
+      drupal_add_js(array(
+      'teleport' => array(
+        'form' => drupal_get_form("teleport_form"),
+        'hotkey' => strtoupper(TELEPORT_HOTKEY),
+        )), 'setting');
+    }
   }
 }
 
