X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/2ffa361a7610cbd1334754da314e4783226df689..a8a191541d6f05b08bd8331bdf409af5abfac896:/charts.php diff --git a/charts.php b/charts.php index 69997d87..959cfe36 100644 --- a/charts.php +++ b/charts.php @@ -37,11 +37,17 @@ import('PieChartEx'); import('ttUserHelper'); import('ttTeamHelper'); -// Access check. -if (!ttAccessAllowed('view_own_charts') || !$user->isPluginEnabled('ch')) { +// Access checks. +if (!ttAccessAllowed('view_own_charts')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('ch')) { + header('Location: feature_disabled.php'); + exit(); +} + + // Initialize and store date in session. $cl_date = $request->getParameter('date', @$_SESSION['date']);