@@ -57,7 +54,7 @@ With 101% height we essentially force the scrollbar to always appear. -->
{if $authenticated}
- {if $user->isAdmin()}
+ {if $user->can('administer_site')}
@@ -74,7 +71,7 @@ With 101% height we essentially force the scrollbar to always appear. -->
- {$i18n.menu.teams} ·
+ {$i18n.menu.groups} ·
{$i18n.menu.options}
|
@@ -86,7 +83,18 @@ With 101% height we essentially force the scrollbar to always appear. -->
@@ -98,33 +106,39 @@ With 101% height we essentially force the scrollbar to always appear. -->
- {if !$user->isClient()}
+ {if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))}
{$i18n.menu.time}
{/if}
- {if $user->isPluginEnabled('ex') && !$user->isClient()}
+ {if $user->exists() && $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->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))}
+ {if !$user->isClient()}·{/if} {$i18n.menu.reports}
+ {/if}
+ {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('track_own_time') || $user->can('track_time'))}
+ · {$i18n.menu.timesheets}
+ {/if}
+ {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_client_invoices'))}
· {$i18n.title.invoices}
{/if}
- {if ($user->isPluginEnabled('ch') && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode
- || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode || $user->isPluginEnabled('cl'))}
+ {if ($user->exists() && $user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) &&
+ ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() ||
+ $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->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())}
· {$i18n.menu.projects}
{/if}
- {if $user->canManageTeam() && ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() && ($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}
|
@@ -138,8 +152,8 @@ With 101% height we essentially force the scrollbar to always appear. -->
|