--- statistics.module.orig 2005-08-15 11:49:33.000000000 -0400 +++ statistics.module 2005-08-15 11:52:32.000000000 -0400 @@ -82,7 +82,7 @@ * Implementation of hook_perm(). */ function statistics_perm() { - return array('access statistics'); + return array('access accesslog', 'access content view counters'); } /** @@ -93,7 +93,7 @@ $links = array(); - if ($type != 'comment' && variable_get('statistics_display_counter', 0)) { + if ($type != 'comment' && user_access('access content view counters')) { $statistics = statistics_get($node->nid); if ($statistics) { $links[] = format_plural($statistics['totalcount'], '1 read', '%count reads'); @@ -108,7 +108,7 @@ function statistics_menu($may_cache) { $items = array(); - $access = user_access('access statistics'); + $access = user_access('access accesslog'); if ($may_cache) { $items[] = array('path' => 'admin/logs/hits', 'title' => t('recent hits'), 'callback' => 'statistics_recent_hits', 'access' => $access, @@ -344,7 +344,6 @@ // count content views settings $group = form_radios(t('Count content views'), 'statistics_count_content_views', variable_get('statistics_count_content_views', 0), array('1' => t('Enabled'), '0' => t('Disabled')), t('Increment a counter each time content is viewed.')); - $group .= form_radios(t('Display counter values'), 'statistics_display_counter', variable_get('statistics_display_counter', 0), array('1' => t('Enabled'), '0' => t('Disabled')), t('Display how many times given content has been viewed.')); $output .= form_group(t('Content viewing counter settings'), $group); return $output;