static function enablePlugin($plugin, $enable = true)
{
global $user;
- if (!$user->canManageTeam())
+ if (!$user->can('manage_features'))
return false;
$plugin_array = explode(',', $user->plugins);
$billable_part = $fields['billable'] ? ', billable = 1' : ', billable = 0';
}
$paid_part = '';
- if ($user->canManageTeam() && $user->isPluginEnabled('ps')) {
+ if ($user->can('manage_invoices') && $user->isPluginEnabled('ps')) {
$paid_part = $fields['paid'] ? ', paid = 1' : ', paid = 0';
}
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="1" cellpadding="2" border="0">
<tr>
<td align="right">{$i18n.label.thing_name} (*):</td>
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" align="center"><b>{$field|escape}</b></td>
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="1" cellpadding="2" border="0">
<tr>
<td align="right">{$i18n.label.thing_name} (*):</td>
<table cellspacing="0" cellpadding="7" border="0" width="720">
<tr>
<td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<td width="50%" class="tableHeader">{$i18n.label.thing_name}</td>
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="1" cellpadding="2" border="0">
<tr>
<td align="right">{$i18n.label.thing_name} (*):</td>
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" align="center"><b>{$option|escape}</b></td>
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="1" cellpadding="2" border="0">
<tr>
<td align="right">{$i18n.label.thing_name} (*):</td>
<table cellspacing="0" cellpadding="7" border="0" width="720">
<tr>
<td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_custom_fields')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
<td align="right">{$i18n.label.cost}:</td>
<td>{$forms.expenseItemForm.cost.control} {$user->currency|escape}</td>
</tr>
-{if ($user->canManageTeam() && $user->isPluginEnabled('ps'))}
+{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))}
<tr>
<td align="right"> </td>
<td><label>{$forms.expenseItemForm.paid.control}{$i18n.label.paid}</label></td>
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.43.4075 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.43.4076 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>