X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=topdf.php;h=a0be19ec4826647fbf1e9be527c0c5adb15b097b;hb=1e2a1839bd4b4530a43dfcdc3f0582623edd5486;hp=fd3016e5528d7489648c4e96bd91b03883d044bc;hpb=49c25be4ace17ab7495824a08c37a061a5a75b25;p=timetracker.git
diff --git a/topdf.php b/topdf.php
index fd3016e5..a0be19ec 100644
--- a/topdf.php
+++ b/topdf.php
@@ -36,7 +36,7 @@ import('form.ActionForm');
import('ttReportHelper');
// Access checks.
-if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) {
+if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports') || ttAccessAllowed('view_all_reports') || ttAccessAllowed('view_client_reports'))) {
header('Location: access_denied.php');
exit();
}
@@ -159,6 +159,7 @@ if ($totals_only) {
if ($bean->getAttribute('chpaid')) { $colspan++; $html .= "
".$i18n->get('label.paid').' | '; }
if ($bean->getAttribute('chip')) { $colspan++; $html .= "".$i18n->get('label.ip').' | '; }
if ($bean->getAttribute('chinvoice')) { $colspan++; $html .= ''.$i18n->get('label.invoice').' | '; }
+ if ($bean->getAttribute('chtimesheet')) { $colspan++; $html .= ''.$i18n->get('label.timesheet').' | '; }
$html .= '';
$html .= '';
@@ -211,6 +212,7 @@ if ($totals_only) {
if ($bean->getAttribute('chpaid')) $html .= ' | ';
if ($bean->getAttribute('chip')) $html .= ' | ';
if ($bean->getAttribute('chinvoice')) $html .= ' | ';
+ if ($bean->getAttribute('chtimesheet')) $html .= ' | ';
$html .= '';
$html .= ' |
';
}
@@ -249,6 +251,7 @@ if ($totals_only) {
$html .= '';
}
if ($bean->getAttribute('chinvoice')) $html .= ''.htmlspecialchars($item['invoice']).' | ';
+ if ($bean->getAttribute('chtimesheet')) $html .= ''.htmlspecialchars($item['timesheet_name']).' | ';
$html .= '';
$prev_date = $item['date'];
@@ -300,6 +303,7 @@ if ($totals_only) {
if ($bean->getAttribute('chpaid')) $html .= ' | ';
if ($bean->getAttribute('chip')) $html .= ' | ';
if ($bean->getAttribute('chinvoice')) $html .= ' | ';
+ if ($bean->getAttribute('chtimesheet')) $html .= ' | ';
$html .= '';
}
@@ -328,6 +332,7 @@ if ($totals_only) {
if ($bean->getAttribute('chpaid')) $html .= ' | ';
if ($bean->getAttribute('chip')) $html .= ' | ';
if ($bean->getAttribute('chinvoice')) $html .= ' | ';
+ if ($bean->getAttribute('chtimesheet')) $html .= ' | ';
$html .= '';
$html .= '';
}