$this->rights = explode(',', $val['rights']);
$this->is_client = !in_array('track_own_time', $this->rights);
$this->rank = $val['rank'];
- // Downgrade rank to legacy ROLE_MANAGER rank, until we have sub-groups implemented.
- if ($this->rank > ROLE_MANAGER) $this->rank = ROLE_MANAGER;
$this->client_id = $val['client_id'];
$this->email = $val['email'];
$this->lang = $val['lang'];
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.49.4088 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.49.4089 | 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>
{if $user->uncompleted_indicators}
<span class="uncompleted-entry{if $u.has_uncompleted_entry} active{/if}"{if $u.has_uncompleted_entry} title="{$i18n.form.users.uncompleted_entry}"{/if}></span>
{/if}
- {if $u.rank <= $user->rank}
+ {if $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)}
<a href="user_edit.php?id={$u.id}">{$u.name|escape}</a>
{else}
{$u.name|escape}
{foreach $inactive_users as $u}
<tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
<td>
- {if $u.rank <= $user->rank}
+ {if $u.rank < $user->rank}
<a href="user_edit.php?id={$u.id}">{$u.name|escape}</a>
{else}
{$u.name|escape}
</td>
<td>{$u.login|escape}</td>
<td>{$u.role_name|escape}</td>
- {if $u.rank <= $user->rank}
+ {if $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)}
<td><a href="user_edit.php?id={$u.id}">{$i18n.label.edit}</a></td>
{if $u.id != $user->id}<td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>{else}<td></td>{/if}
{else}
<td>{$u.name|escape}</td>
<td>{$u.login|escape}</td>
<td>{$u.role_name|escape}</td>
- {if $u.rank <= $user->rank}
+ {if $u.rank < $user->rank}
<td><a href="user_edit.php?id={$u.id}">{$i18n.label.edit}</a></td>
- {if $u.id != $user->id}<td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>{else}<td></td>{/if}
+ <td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>
{else}
<td></td>
<td></td>