<table cellspacing="0" cellpadding="7" border="0" width="720">
<tr>
<td valign="top">
-{if $user->canManageTeam() || $user->isClient()}
+{if $user->can('manage_invoices') || $user->can('view_own_invoices')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<td class="tableHeader">{$i18n.label.invoice}</td>
<table class="mobile-table">
<tr>
<td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_projects')}
<table class="mobile-table-details">
{if $inactive_projects}
<tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.active_projects}</td></tr>
<table cellspacing="0" cellpadding="7" border="0" width="720">
<tr>
<td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_advanced_settings')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<td class="tableHeader">{$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_advanced_settings')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<td class="tableHeader">{$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_projects')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
{if $inactive_projects}
<tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.active_projects}</td></tr>
$err->add($i18n->get('error.db'));
}
} elseif ($request->getParameter('onBehalfUser')) {
- if($user->canManageTeam()) {
+ if($user->can('track_expenses')) {
unset($_SESSION['behalf_id']);
unset($_SESSION['behalf_name']);
$err->add($i18n->get('error.db'));
}
} elseif ($request->getParameter('onBehalfUser')) {
- if($user->canManageTeam()) {
+ if($user->can('track_expenses')) {
unset($_SESSION['behalf_id']);
unset($_SESSION['behalf_name']);
// Get users.
$active_users = ttTeamHelper::getActiveUsers(array('getAllFields'=>true));
-if($user->canManageTeam()) {
+if($user->can('manage_users')) {
$can_delete_manager = (1 == count($active_users));
$inactive_users = ttTeamHelper::getInactiveUsers($user->group_id, true);
}
}
}
elseif ($request->getParameter('onBehalfUser')) {
- if($user->canManageTeam()) {
+ if($user->can('track_time')) {
unset($_SESSION['behalf_id']);
unset($_SESSION['behalf_name']);