X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=fe560016eff16df0daa16604fc3a2d33ab900afb;hb=8d79e78a49803d07856cd68ab733157dfed6f793;hp=80e1e903b030a9ad553e055a5ac69e7dd40014f9;hpb=5fd6816a0567b31414492712d5002d3ecc9f52a2;p=timetracker.git diff --git a/reports.php b/reports.php index 80e1e903..fe560016 100644 --- a/reports.php +++ b/reports.php @@ -37,7 +37,7 @@ import('ttFavReportHelper'); import('ttClientHelper'); // Access check. -if (!ttAccessCheck(right_view_reports)) { +if (!ttAccessAllowed('view_own_reports')) { header('Location: access_denied.php'); exit(); } @@ -197,8 +197,7 @@ if ((TYPE_START_FINISH == $user->record_type) || (TYPE_ALL == $user->record_type } $form->addInput(array('type'=>'checkbox','name'=>'chduration')); $form->addInput(array('type'=>'checkbox','name'=>'chnote')); -if (defined('COST_ON_REPORTS') && isTrue(COST_ON_REPORTS)) - $form->addInput(array('type'=>'checkbox','name'=>'chcost')); +$form->addInput(array('type'=>'checkbox','name'=>'chcost')); // If we have a custom field - add a checkbox for it. if ($custom_fields && $custom_fields->fields[0]) $form->addInput(array('type'=>'checkbox','name'=>'chcf_1'));