X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=fdded891c265afedfeddbba283779043ad2f1958;hb=582bcea8035519f2b93be44023ec2cd032ef2504;hp=87d2c4012caf4c7c081c12c7f79c4fb0fdd84ee5;hpb=89d8a451de23fcb0f26bf5cd4dd1ed87430a4b03;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
index 87d2c401..fdded891 100644
--- a/WEB-INF/templates/mobile/header.tpl
+++ b/WEB-INF/templates/mobile/header.tpl
@@ -55,13 +55,13 @@
{if $authenticated}
- {if $user->isAdmin()}
+ {if $user->can('administer_site')}
- {$i18n.menu.teams} ·
+ {$i18n.menu.groups} ·
{$i18n.menu.options}
|
@@ -73,22 +73,22 @@
- {if !$user->isClient()}
+ {if $user->can('track_own_time') || $user->can('track_time')}
{$i18n.menu.time}
{/if}
- {if $user->isPluginEnabled('ex') && !$user->isClient()}
+ {if $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
· {$i18n.menu.expenses}
{/if}
- {if !$user->isClient() && ($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->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 ($user->can('view_own_tasks') || $user->can('manage_tasks')) && $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode}
· {$i18n.menu.tasks}
{/if}
- {if !$user->isClient()}
+ {if $user->can('view_users') || $user->can('manage_users')}
· {$i18n.menu.users}
{/if}
- {if $user->canManageTeam() && $user->isPluginEnabled('cl')}
+ {if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
· {$i18n.menu.clients}
{/if}
|