diff options
author | Simon Rettberg | 2018-04-03 10:49:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-03 10:49:29 +0200 |
commit | 18b55faafc5ad6a2f6656382b151a52f0d2cd48d (patch) | |
tree | 0e769cec361029400077b58df13ecd9514e5580b /modules-available | |
parent | [statistics] Use assertPermission instead of manual error + redirect (diff) | |
download | slx-admin-18b55faafc5ad6a2f6656382b151a52f0d2cd48d.tar.gz slx-admin-18b55faafc5ad6a2f6656382b151a52f0d2cd48d.tar.xz slx-admin-18b55faafc5ad6a2f6656382b151a52f0d2cd48d.zip |
[locationinfo] Use User::assertPermission()
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 656c2f81..e1e47385 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -48,8 +48,7 @@ class Page_LocationInfo extends Page } elseif (User::hasPermission('backend.*')) { $show = 'backends'; } else { - Message::addError('main.no-permission'); - Util::redirect('?do=main'); + User::assertPermission('panel.list'); } Util::redirect('?do=locationinfo&show=' . $show); } |