]> wagnertech.de Git - timetracker.git/blobdiff - tofile.php
Dutch translation improved.
[timetracker.git] / tofile.php
index 67c5b31ceb08214d4ace1fa5e402b4605e9d482d..e7b9ed963b4fbab166135ae48d15c52395f3f7a4 100644 (file)
@@ -31,11 +31,12 @@ import('form.Form');
 import('form.ActionForm');
 import('ttReportHelper');
 
-// Access check.
-if (!ttAccessAllowed('view_own_reports')) {
+// Access checks.
+if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) {
   header('Location: access_denied.php');
   exit();
 }
+// End of access checks.
 
 // Use custom fields plugin if it is enabled.
 if ($user->isPluginEnabled('cf')) {