X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fheader.tpl;h=d00000a70cdc70bd9f527f7a7b0217696288666b;hb=2940db88b0c3e90b9e4937daf295522c44e94030;hp=b5f122dbe571af516fbf28e209452363c54006a3;hpb=cc12768e670e4a553593a6c41bec7ccc568102d4;p=timetracker.git diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index b5f122db..d00000a7 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -112,14 +112,13 @@ {if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))} · {$i18n.menu.expenses} {/if} - {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports'))} - · {$i18n.menu.reports} + {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))} + {if !$user->isClient()}·{/if} {$i18n.menu.reports} {/if} - {if $user->exists() && $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'))} + {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('track_own_time') || $user->can('track_time'))} · {$i18n.menu.timesheets} {/if} - {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))} + {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_client_invoices'))} · {$i18n.title.invoices} {/if} {if ($user->exists() && $user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) &&