X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fheader.tpl;h=e0fd8057a5d99beb1644ad71403ddb4fb5590dd9;hb=7916f561fed6b50348f144fc411ca82ee9bd5ebb;hp=4e4a4146495e88e7e1e95b694cfa0ec0c967ee74;hpb=7ece3d4c1cf7c91fc469373a6b8a997fd4ea3398;p=timetracker.git diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index 4e4a4146..e0fd8057 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -102,7 +102,7 @@ · {$i18n.menu.expenses} {/if} {if !$user->isClient()}· {/if}{$i18n.menu.reports} - {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')} + {if $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_own_invoices'))} · {$i18n.title.invoices} {/if} {if ($user->isPluginEnabled('ch') && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode @@ -112,13 +112,13 @@ {if !$user->isClient() && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} · {$i18n.menu.projects} {/if} - {if $user->canManageTeam() && ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode) && $user->can('manage_tasks')} · {$i18n.menu.tasks} {/if} {if !$user->isClient()} · {$i18n.menu.users} {/if} - {if $user->canManageTeam() && $user->isPluginEnabled('cl')} + {if $user->isPluginEnabled('cl') && $user->can('manage_clients')} · {$i18n.menu.clients} {/if} {if $user->isManager()}