]> wagnertech.de Git - timetracker.git/commitdiff
Fixed menu display for client role.
authorNik Okuntseff <support@anuko.com>
Sat, 23 Feb 2019 13:58:42 +0000 (13:58 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 23 Feb 2019 13:58:42 +0000 (13:58 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/header.tpl
timesheet_view.php

index 024e05d386846ad934618c6afe435e1744c24024..8ee0d38253dc478d42a830f737081aea25f683e0 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.4754 | 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.4755 | 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 0b9e290a11690f188fb274b1e8614f38be7c4137..385f8a85b667a4044b01171cd0ab345f4ade4204 100644 (file)
             &middot; <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
     {/if}
     {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))}
-            &middot; <a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a> 
+      {if !$user->isClient()}&middot;{/if} <a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a>
     {/if}
     {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('view_own_timesheets') || $user->can('view_timesheets') || $user->can('view_all_timesheets') || $user->can('view_client_timesheets'))}
             &middot; <a class="mainMenu" href="timesheets.php">{$i18n.menu.timesheets}</a>
index 70ab3357dabca597ef40128e8fb7f2f2437fc874..5079fe7b7c1adaba1593b5e69707fa667ec629ba 100644 (file)
@@ -45,7 +45,7 @@ if (!$timesheet) {
   exit();
 }
 // TODO: add other checks here for timesheet being appropriate for user role.
-// TODO: if this is a timeheet submit, validate approver id, too.
+// TODO: if this is a timesheet submit, validate approver id, too.
 // End of access checks.
 
 if ($request->isPost()) {