X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Freports.tpl;h=a70a3f0727699bacf94ae9d610dd72c77cf7cfb8;hb=2bd9983978cf8d6263e27a531aeb33f365667e37;hp=ce804dc575fcdb601ce10cba3b7e6902a8f15257;hpb=0afb05f8218082cb068f17a0f16f5bcb5c32131e;p=timetracker.git diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index ce804dc5..a70a3f07 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -201,15 +201,27 @@ function handleCheckboxes() {
{/if} - {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')} + {if ($user->can('manage_invoices') || $user->isClient()) && $user->isPluginEnabled('iv')} | + {/if} + {if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} + | + {/if} + {if $user->can('view_reports') || $user->can('view_all_reports')} + | {/if} | {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} | -{if ((($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex')) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))} +{if ($user->can('manage_invoices') || $user->isClient()) || $user->isPluginEnabled('ex')} | {else} | @@ -261,7 +279,7 @@ function handleCheckboxes() { | {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if} | {if ($custom_fields && $custom_fields->fields[0])} - | + | {else} | {/if} |