]> wagnertech.de Git - timetracker.git/blobdiff - charts.php
Security fix for invoice view.
[timetracker.git] / charts.php
index df38cce677c3cf6028bd425a3b67375543f08525..9df70d55e96ae057fb7bd11d0ede32741720bf5a 100644 (file)
@@ -38,7 +38,7 @@ import('ttUserHelper');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessAllowed('view_own_data') || !$user->isPluginEnabled('ch')) {
+if (!ttAccessAllowed('view_own_charts') || !$user->isPluginEnabled('ch')) {
   header('Location: access_denied.php');
   exit();
 }