function isDateLocked($date)
{
if ($this->isPluginEnabled('lk') && $this->lock_spec) {
- // Override for managers.
- if ($this->canManageTeam()) return false;
+
+ // Override.
+ if ($this->can('override_date_lock')) return false;
require_once(LIBRARY_DIR.'/tdcron/class.tdcron.php');
require_once(LIBRARY_DIR.'/tdcron/class.tdcron.entry.php');
<table cellspacing="0" cellpadding="7" border="0" width="720">
<tr>
<td valign="top">
-{if ($user->canManageTeam())}
+{if $user->can('manage_clients')}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
{if $inactive_clients}
<tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.active_clients}</td></tr>
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.44.4077 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.44.4078 | 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>
· <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
{/if}
{if !$user->isClient()}· {/if}<a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a>
- {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')}
+ {if $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_own_invoices'))}
· <a class="mainMenu" href="invoices.php">{$i18n.title.invoices}</a>
{/if}
{if ($user->isPluginEnabled('ch') && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode
{if !$user->isClient() && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
· <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
{/if}
- {if $user->canManageTeam() && ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode) && $user->can('manage_tasks')}
· <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
{/if}
{if !$user->isClient()}
· <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
{/if}
- {if $user->canManageTeam() && $user->isPluginEnabled('cl')}
+ {if $user->isPluginEnabled('cl') && $user->can('manage_clients')}
· <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
{/if}
{if $user->isManager()}
<table class="mobile-table">
<tr>
<td valign="top">
-{if ($user->canManageTeam())}
+{if $user->can('manage_clients')}
<table class="mobile-table-details">
{if $inactive_clients}
<tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.active_clients}</td></tr>