]> wagnertech.de Git - timetracker.git/blobdiff - charts.php
Introduced feature_disabled.php for better error description.
[timetracker.git] / charts.php
index 69997d87f9536c2cd9bb14a7144a45555a416dd3..959cfe36a5183ba322c9de6a55fe94b42eb0a210 100644 (file)
@@ -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']);