]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTimeHelper.class.php
Some more refactoring.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
index 7cbf4ddaa5aa83993a2e3f2264ed7439bf606932..222bcca4cc144023906c5cb9821d281c65c4777b 100644 (file)
@@ -474,7 +474,7 @@ class ttTimeHelper {
       $billable_part = $fields['billable'] ? ', billable = 1' : ', billable = 0';
     }
     $paid_part = '';
-    if ($user->canManageTeam() && $user->isPluginEnabled('ps')) {
+    if ($user->can('manage_invoices') && $user->isPluginEnabled('ps')) {
       $paid_part = $fields['paid'] ? ', paid = 1' : ', paid = 0';
     }