summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/page.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/page.inc.php')
-rw-r--r--modules-available/statistics/page.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php
index a1c4f0c9..d493d87a 100644
--- a/modules-available/statistics/page.inc.php
+++ b/modules-available/statistics/page.inc.php
@@ -157,8 +157,7 @@ class Page_Statistics extends Page
} elseif (User::hasPermission('view.list')) {
$this->show = 'list';
} else {
- Message::addError('main.no-permission');
- Util::redirect('?do=main');
+ User::assertPermission('view.summary');
}
} else {
$this->show = preg_replace('/[^a-z0-9_\-]/', '', $this->show);