diff --git a/modules/statistics.module b/modules/statistics.module index 4e02f6fba8f3d8664da91a2a4685dfc7b65c30df..b46ae4c1a8065d1fed8bab8a61badb3c03bd77bb 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -84,7 +84,7 @@ function statistics_exit() { * Implementation of hook_perm(). */ function statistics_perm() { - return array('access statistics', 'view node access counter'); + return array('access statistics', 'view post access counter'); } /** @@ -94,7 +94,7 @@ function statistics_link($type, $node = 0, $main = 0) { global $id; $links = array(); - if ($type != 'comment' && user_access('view node access counter')) { + if ($type != 'comment' && user_access('view post access counter')) { $statistics = statistics_get($node->nid); if ($statistics) { $links[] = format_plural($statistics['totalcount'], '1 read', '%count reads'); diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 4e02f6fba8f3d8664da91a2a4685dfc7b65c30df..b46ae4c1a8065d1fed8bab8a61badb3c03bd77bb 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -84,7 +84,7 @@ function statistics_exit() { * Implementation of hook_perm(). */ function statistics_perm() { - return array('access statistics', 'view node access counter'); + return array('access statistics', 'view post access counter'); } /** @@ -94,7 +94,7 @@ function statistics_link($type, $node = 0, $main = 0) { global $id; $links = array(); - if ($type != 'comment' && user_access('view node access counter')) { + if ($type != 'comment' && user_access('view post access counter')) { $statistics = statistics_get($node->nid); if ($statistics) { $links[] = format_plural($statistics['totalcount'], '1 read', '%count reads');