X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fheader.tpl;h=23dfdc1176f5b36afc8af32bcee1b59e09d3b764;hb=24d92ab1a3273b9aa6e678f3d381ef9f931ceeb6;hp=3bedfb1eb35b0e783cec48acf8f42a723181a419;hpb=660a3e8ca761113f8e1b739dba11eddf7f581cbd;p=timetracker.git
diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl
index 3bedfb1e..23dfdc11 100644
--- a/WEB-INF/templates/header.tpl
+++ b/WEB-INF/templates/header.tpl
@@ -54,7 +54,7 @@
{if $authenticated}
- {if $user->isAdmin()}
+ {if $user->can('administer_site')}
@@ -71,7 +71,7 @@
- {$i18n.menu.teams} ·
+ {$i18n.menu.groups} ·
{$i18n.menu.options}
|
@@ -83,7 +83,20 @@
@@ -95,33 +108,35 @@
- {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()}· {/if}{$i18n.menu.reports}
- {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')}
+ {if $user->can('view_own_reports') || $user->can('view_reports')}
+ · {$i18n.menu.reports}
+ {/if}
+ {if $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))}
· {$i18n.title.invoices}
{/if}
- {if ($user->isPluginEnabled('ch') && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode
+ {if ($user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode
|| $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode || $user->isPluginEnabled('cl'))}
· {$i18n.menu.charts}
{/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 ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode && ($user->can('view_own_tasks') || $user->can('manage_tasks')))}
· {$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}
- {if $user->isManager()}
+ {if $user->can('export_data')}
· {$i18n.menu.export}
{/if}
|
@@ -136,7 +151,7 @@