<tr>
<td><b>{$i18n.form.time.billable}</b></td>
<td> </td>
+ {if $user->can('manage_invoices')}
<td><b>{$i18n.label.invoice}</b></td>
+ {/if}
</tr>
<tr valign="top">
<td>{$forms.reportForm.include_records.control}</td>
<td> </td>
+ {if $user->can('manage_invoices')}
<td>{$forms.reportForm.invoice.control}</td>
</tr>
+ {/if}
{/if}
{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))}
<tr>
<td>{$forms.reportForm.paid_status.control}</td>
</tr>
{/if}
-{if $user->canManageTeam() || $user->isClient()}
+{if $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()}
<tr>
<td colspan="3"><b>{$i18n.label.users}</b></td>
</tr>
<tr>
<td colspan="3">
<table border="0" width="100%">
-{if $user->canManageTeam() || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')}
+{if $user->can('view_reports') || $user->can('view_all_reports') || $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv') || $user->isPluginEnabled('ps')}
<tr>
{if $user->isPluginEnabled('cl')}
<td width="25%"><label>{$forms.reportForm.chclient.control} {$i18n.label.client}</label></td>
{/if}
- {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')}
+ {if ($user->can('manage_invoices') || $user->isClient()) && $user->isPluginEnabled('iv')}
<td width="25%"><label>{$forms.reportForm.chinvoice.control} {$i18n.label.invoice}</label></td>
{/if}
- {if ($user->canManageTeam() && $user->isPluginEnabled('ps'))}
+ {if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))}
<td width="25%"><label>{$forms.reportForm.chpaid.control} {$i18n.label.paid}</label></td>
{/if}
- {if $user->canManageTeam()}
+ {if $user->can('view_reports') || $user->can('view_all_reports')}
<td width="25%"><label>{$forms.reportForm.chip.control} {$i18n.label.ip}</label></td>
{/if}
</tr>