X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=9e1c452da85bfcf3123def8dffa9700a402f19ee;hb=fc92f9cd36dcaeb96da37c699a61331805d9e2fc;hp=d8c34b2175a34c9a09b3042d924205b40f8b4c6d;hpb=c2b4a52bc12c6ee6204fd03d1d1b2534b7249554;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
index d8c34b21..9e1c452d 100644
--- a/WEB-INF/templates/mobile/header.tpl
+++ b/WEB-INF/templates/mobile/header.tpl
@@ -61,7 +61,7 @@
- {$i18n.menu.groups} ·
+ {$i18n.menu.groups} ·
{$i18n.menu.options}
|
@@ -73,22 +73,22 @@
- {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')}
· {$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}
|