Index: modules/tracker/tracker.module =================================================================== RCS file: /cvs/drupal/drupal/modules/tracker/tracker.module,v retrieving revision 1.157 diff -u -r1.157 tracker.module --- modules/tracker/tracker.module 6 May 2008 12:18:51 -0000 1.157 +++ modules/tracker/tracker.module 26 Aug 2008 11:58:30 -0000 @@ -20,13 +20,20 @@ } /** + * Implementation of hook_perm(). + */ +function tracker_perm() { + return array('access recent posts'); +} + +/** * Implementation of hook_menu(). */ function tracker_menu() { $items['tracker'] = array( 'title' => 'Recent posts', 'page callback' => 'tracker_page', - 'access arguments' => array('access content'), + 'access arguments' => array('access recent posts'), 'weight' => 1, ); $items['tracker/all'] = array( @@ -61,13 +68,13 @@ */ function _tracker_myrecent_access($account) { // This path is only allowed for authenticated users looking at their own posts. - return $account->uid && ($GLOBALS['user']->uid == $account->uid) && user_access('access content'); + return $account->uid && ($GLOBALS['user']->uid == $account->uid) && user_access('access recent posts'); } /** * Access callback for user/%user/track */ function _tracker_user_access($account) { - return user_view_access($account) && user_access('access content'); + return user_view_access($account) && user_access('access recent posts'); }