Index: biblio.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/biblio/biblio.module,v
retrieving revision 1.123.2.85
diff -u -r1.123.2.85 biblio.module
--- biblio.module	9 Jan 2009 03:20:01 -0000	1.123.2.85
+++ biblio.module	12 Jan 2009 11:30:51 -0000
@@ -475,16 +485,16 @@
       'file' => 'biblio.admin.inc',
       'type' => MENU_CALLBACK
   );
-
   $items["user/%user/$base"] = array(
     'title' => t('Publications'),
     'page callback' => 'biblio_get_user_pubs',
     'page arguments' => array(1, 'profile'),
-    'access callback' => 'user_view_access',
+    'access callback' => '_biblio_profile_access',
     'access arguments' => array(1),
     'file' => 'biblio.pages.inc',
     'type' => MENU_LOCAL_TASK
   );
+
   // The next two "LOCAL TASKS" are for the admin/settings/biblio page
   $items['admin/settings/biblio'] = array(
     'title' => t('Biblio settings'),
@@ -1977,3 +1987,6 @@
   return $values;
 }
 
+function _biblio_profile_access($user) {
+  return $user->biblio_show_profile;
+}
\ No newline at end of file

