Started to replace canManageTeam calls with right checks.
[timetracker.git] / WEB-INF / lib / ttExpenseHelper.class.php
index 533c438..7d63ba4 100644 (file)
@@ -70,7 +70,7 @@ class ttExpenseHelper {
     $invoice_id = $fields['invoice_id'];
 
     $paid_part = '';
-    if ($user->canManageTeam() && $user->isPluginEnabled('ps')) {
+    if ($user->can('manage_invoices') && $user->isPluginEnabled('ps')) {
       $paid_part = $fields['paid'] ? ', paid = 1' : ', paid = 0';
     }