X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=80e1e903b030a9ad553e055a5ac69e7dd40014f9;hb=7d4e14287bbbd83a07b093e97ac53266494b7628;hp=710de524691e4afd0cfa93dbd76d6d8746a4def8;hpb=704d09fab8234dda51765058b15393f6c68191f3;p=timetracker.git diff --git a/reports.php b/reports.php index 710de524..80e1e903 100644 --- a/reports.php +++ b/reports.php @@ -122,7 +122,7 @@ $form->addInput(array('type'=>'combobox', 'data'=>$include_options, 'empty'=>array(''=>$i18n->getKey('dropdown.all')))); -if ($user->isPluginEnabled('ps')) { +if ($user->canManageTeam() && $user->isPluginEnabled('ps')) { $form->addInput(array('type'=>'combobox', 'name'=>'paid_status', 'style'=>'width: 250px;', @@ -202,7 +202,8 @@ if (defined('COST_ON_REPORTS') && isTrue(COST_ON_REPORTS)) // 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')); - +if ($user->canManageTeam() && $user->isPluginEnabled('ps')) + $form->addInput(array('type'=>'checkbox','name'=>'chpaid')); // Add group by control. $group_by_options['no_grouping'] = $i18n->getKey('form.reports.group_by_no'); $group_by_options['date'] = $i18n->getKey('form.reports.group_by_date'); @@ -247,6 +248,7 @@ if ($request->isGet() && !$bean->isSaved()) { $form->setValueByElement('chfinish', '1'); $form->setValueByElement('chnote', '1'); $form->setValueByElement('chcf_1', '0'); + $form->setValueByElement('chpaid', '0'); $form->setValueByElement('chtotalsonly', '0'); }