X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fheader.tpl;h=fdded891c265afedfeddbba283779043ad2f1958;hb=582bcea8035519f2b93be44023ec2cd032ef2504;hp=7a48f5e9a8ed06e6e2eb46b3d10bebe47b0ee067;hpb=5fdf8659516ad2b07458deba8eda234e8e07c554;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
index 7a48f5e9..fdded891 100644
--- a/WEB-INF/templates/mobile/header.tpl
+++ b/WEB-INF/templates/mobile/header.tpl
@@ -21,7 +21,7 @@
{assign var="tab_width" value="300"}
-
+
@@ -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}
|
|