X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=9e1c452da85bfcf3123def8dffa9700a402f19ee;hb=fe8af9a04f7170a0623915f31610c6c4c3df4058;hp=f61b7119a98e976b024660bbdb2b907dd857e331;hpb=e0ec0364d761e2dff5a7c0032f04ec1dbae50980;p=timetracker.git diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl index f61b7119..9e1c452d 100644 --- a/WEB-INF/templates/mobile/header.tpl +++ b/WEB-INF/templates/mobile/header.tpl @@ -61,7 +61,7 @@ @@ -73,22 +73,22 @@
  - {$i18n.menu.groups} · + {$i18n.menu.groups} · {$i18n.menu.options}
  - {if $user->can('track_own_time') || $user->can('track_time')} + {if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))} {$i18n.menu.time} {/if} - {if $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))} + {if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))} · {$i18n.menu.expenses} {/if} - {if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())} · {$i18n.menu.projects} {/if} - {if $user->can('manage_tasks') && $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode} + {if ($user->can('view_own_tasks') || $user->can('manage_tasks')) && $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode()} · {$i18n.menu.tasks} {/if} {if $user->can('view_users') || $user->can('manage_users')} · {$i18n.menu.users} {/if} - {if $user->isPluginEnabled('cl') && $user->can('manage_clients')} + {if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))} · {$i18n.menu.clients} {/if}