From 3bb62c4615274c6d495f58fd80df912c9beffee5 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 14 Apr 2018 01:26:53 +0000 Subject: [PATCH] A bit more progress on removing dependency on canManageTeam(). --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/time_edit.tpl | 2 +- expense_edit.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index dbacaa7f..93841759 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- {/if} -{if ($user->canManageTeam() && $user->isPluginEnabled('ps'))} +{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} diff --git a/expense_edit.php b/expense_edit.php index 3e8b18e9..26cf3bba 100644 --- a/expense_edit.php +++ b/expense_edit.php @@ -141,7 +141,7 @@ if ($predefined_expenses) { } $form->addInput(array('type'=>'textarea','maxlength'=>'800','name'=>'item_name','style'=>'width: 250px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_item_name)); $form->addInput(array('type'=>'text','maxlength'=>'40','name'=>'cost','style'=>'width: 100px;','value'=>$cl_cost)); -if ($user->canManageTeam() && $user->isPluginEnabled('ps')) +if ($user->can('manage_invoices') && $user->isPluginEnabled('ps')) $form->addInput(array('type'=>'checkbox','name'=>'paid','value'=>$cl_paid)); $form->addInput(array('type'=>'datefield','name'=>'date','maxlength'=>'20','value'=>$cl_date)); // Hidden control for record id. -- 2.20.1
 Anuko Time Tracker 1.17.88.4261 | Copyright © Anuko | +  Anuko Time Tracker 1.17.88.4262 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/time_edit.tpl b/WEB-INF/templates/time_edit.tpl index 1d346bba..a5017ce7 100644 --- a/WEB-INF/templates/time_edit.tpl +++ b/WEB-INF/templates/time_edit.tpl @@ -20,7 +20,7 @@