X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=9e1c452da85bfcf3123def8dffa9700a402f19ee;hb=fc92f9cd36dcaeb96da37c699a61331805d9e2fc;hp=fdded891c265afedfeddbba283779043ad2f1958;hpb=995feb6c9e97991e5b9d9803fbc3c8a41ac48922;p=timetracker.git diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl index fdded891..9e1c452d 100644 --- a/WEB-INF/templates/mobile/header.tpl +++ b/WEB-INF/templates/mobile/header.tpl @@ -73,16 +73,16 @@
- {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('view_own_tasks') || $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')} |