Fixed display of Timesheet checkbox for clients.
authorNik Okuntseff <support@anuko.com>
Sat, 23 Feb 2019 14:57:01 +0000 (14:57 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 23 Feb 2019 14:57:01 +0000 (14:57 +0000)
WEB-INF/templates/footer.tpl
reports.php

index 049d1f3..951bba1 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.37.4756 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.37.4757 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 05d7e5f..264e564 100644 (file)
@@ -180,8 +180,8 @@ if ($showPaidStatus) {
 
 // Add timesheet assignment selector.
 $showTimesheet = $user->isPluginEnabled('ts') &&
-  ($user->can('view_own_timesheets') || $user->can('manage_own_timesheets') ||
-  $user->can('view_timesheets') || $user->can('manage_timesheets') || $user->can('approve_timesheets'));
+  ($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
+   $user->can('view_all_timesheets') || $user->can('view_client_timesheets'));
 if ($showTimesheet) {
   $form->addInput(array('type'=>'combobox',
    'name'=>'timesheet',