Index: modules/tracker/tracker.module =================================================================== RCS file: /cvs/drupal/drupal/modules/tracker/tracker.module,v retrieving revision 1.143.2.2 diff -u -p -r1.143.2.2 tracker.module --- modules/tracker/tracker.module 26 Jul 2007 19:16:50 -0000 1.143.2.2 +++ modules/tracker/tracker.module 3 Jul 2008 05:10:57 -0000 @@ -20,6 +20,13 @@ function tracker_help($section) { } /** + * Implementation of hook_perm(). + */ +function tracker_perm() { + return array('access recent posts'); +} + +/** * Implementation of hook_menu(). */ function tracker_menu($may_cache) { @@ -28,7 +35,7 @@ function tracker_menu($may_cache) { if ($may_cache) { $items[] = array('path' => 'tracker', 'title' => t('Recent posts'), - 'callback' => 'tracker_page', 'access' => user_access('access content'), + 'callback' => 'tracker_page', 'access' => user_access('access recent posts'), 'weight' => 1); if ($user->uid) { @@ -41,7 +48,7 @@ function tracker_menu($may_cache) { else { if (arg(0) == 'user' && is_numeric(arg(1))) { $items[] = array('path' => 'user/'. arg(1) .'/track', 'title' => t('Track'), - 'callback' => 'tracker_track_user', 'access' => user_access('access content'), + 'callback' => 'tracker_track_user', 'access' => user_access('access recent posts'), 'type' => MENU_IS_LOCAL_TASK); $items[] = array('path' => 'user/'. arg(1) .'/track/posts', 'title' => t('Track posts'), 'type' => MENU_DEFAULT_LOCAL_TASK);