X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=3bd410a464ea7a5abd9a2aa0a551de910ca357f7;hb=181d072f27ced2ed2e350dc66ee6aaeafce9f4bf;hp=9f29069d33c60dac61656aa145482f5ee81c9f9d;hpb=c1dab04d6ff59c3c8ced5d95b84090dd3bef03e1;p=timetracker.git diff --git a/report.php b/report.php index 9f29069d..3bd410a4 100644 --- a/report.php +++ b/report.php @@ -284,7 +284,7 @@ if ($report_items) { // Determine column span for note field. $colspan = 1; -if ($bean->getAttribute('chuser')) $colspan++; +if ($user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()) $colspan++; if ($bean->getAttribute('chclient')) $colspan++; if ($bean->getAttribute('chproject')) $colspan++; if ($bean->getAttribute('chtask')) $colspan++; @@ -299,6 +299,7 @@ if ($bean->getAttribute('chpaid')) $colspan++; if ($bean->getAttribute('chip')) $colspan++; if ($bean->getAttribute('chinvoice')) $colspan++; if ($bean->getAttribute('chtimesheet')) $colspan++; +if ($bean->getAttribute('chfiles')) $colspan++; // Assign variables that are used to alternate color of rows for different dates. $smarty->assign('prev_date', '');