$invoice_id = $fields['invoice_id'];
$paid_part = '';
- if ($user->canManageTeam() && $user->isPluginEnabled('ps')) {
+ if ($user->can('manage_invoices') && $user->isPluginEnabled('ps')) {
$paid_part = $fields['paid'] ? ', paid = 1' : ', paid = 0';
}
// If all users are selected - use a null value (which means "all users").
$all_users_selected = true;
- if ($user->canManageTeam()) {
+ if ($user->can('view_reports')) {
$all = ttTeamHelper::getActiveUsers();
foreach ($all as $one) {
if (!in_array($one['id'], $users_in_bean)) {
$bean->setAttribute('users', explode(',', $val['users']));
else {
// Null users value means "all users". Add them to the bean.
- if ($user->canManageTeam()) {
+ if ($user->can('view_reports')) {
$all = ttTeamHelper::getActiveUsers();
foreach ($all as $one) {
$all_user_ids[] = $one['id'];
// isAdmin - determines whether current user is admin (has right_administer_site).
function isAdmin() {
- return (right_administer_site & $this->role);
+ return $this->can('administer_site');
}
// isManager - determines whether current user is team manager.
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.43.4069 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.43.4070 | 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>