X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=640a55ca70d4d270a22179aa370728c8e5c2a5b5;hb=53171dda875db008bc0ce6da98115dff6b3232e8;hp=7d0524e1e2dcf94a7728f41926ee1a1478da85a4;hpb=f0e54f23029d8b109c0ab554ab2b49195d204391;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index 7d0524e1..640a55ca 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -209,7 +209,7 @@ function handleCheckboxes() { {$forms.reportForm.invoice.control} {/if} -{if ($user->canManageTeam() && $user->isPluginEnabled('ps'))} +{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} {$i18n.label.paid_status} @@ -244,7 +244,7 @@ function handleCheckboxes() { -{if $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')} +{if $user->canManageTeam() || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')} {if $user->isPluginEnabled('cl')} @@ -255,7 +255,7 @@ function handleCheckboxes() { {if ($user->canManageTeam() && $user->isPluginEnabled('ps'))} {/if} - {if ($user->canManageTeam())} + {if $user->canManageTeam()} {/if} @@ -264,7 +264,7 @@ function handleCheckboxes() { -{if (($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex'))} +{if ($user->can('manage_invoices') || $user->isClient()) || $user->isPluginEnabled('ex')} {else}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if}