From db55bdb7b1dd2bcfa793437fe97a6777eb9d93a6 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 23 Feb 2019 13:58:42 +0000 Subject: [PATCH] Fixed menu display for client role. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/header.tpl | 2 +- timesheet_view.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 024e05d3..8ee0d382 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.37.4754 | Copyright © Anuko | +  Anuko Time Tracker 1.18.37.4755 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index 0b9e290a..385f8a85 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -113,7 +113,7 @@ · {$i18n.menu.expenses} {/if} {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))} - · {$i18n.menu.reports} + {if !$user->isClient()}·{/if} {$i18n.menu.reports} {/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'))} · {$i18n.menu.timesheets} diff --git a/timesheet_view.php b/timesheet_view.php index 70ab3357..5079fe7b 100644 --- a/timesheet_view.php +++ b/timesheet_view.php @@ -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()) { -- 2.20.1