diff options
author | Simon Rettberg | 2018-03-31 23:11:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-03-31 23:11:24 +0200 |
commit | 29c6f01d46af7b8d8121df599ff44aea5ac940f8 (patch) | |
tree | dfdff3cee7c16f14e731bc51affdc5220f3b70c2 | |
parent | [dnbd3] Runmode: Merge IP ranges opened in firewall (diff) | |
download | slx-admin-29c6f01d46af7b8d8121df599ff44aea5ac940f8.tar.gz slx-admin-29c6f01d46af7b8d8121df599ff44aea5ac940f8.tar.xz slx-admin-29c6f01d46af7b8d8121df599ff44aea5ac940f8.zip |
[statistics] Use assertPermission instead of manual error + redirect
-rw-r--r-- | modules-available/statistics/page.inc.php | 3 |
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); |