If a customer's page is hidden from menu via settings, redirect the user if he tries to access the page

This commit is contained in:
Michael Wyraz
2016-07-27 13:45:54 +02:00
parent e5c649aba3
commit e3587fb346
8 changed files with 69 additions and 0 deletions

View File

@@ -20,6 +20,13 @@
define('AREA', 'customer');
$intrafficpage = 1;
require './lib/init.php';
// redirect if this customer page is hidden via settings
if (Settings::IsInList('panel.customer_hide_options','traffic')) {
redirectTo('customer_index.php');
exit;
}
$traffic = '';
$month = null;
$year = null;