Code comment

This commit is contained in:
Laurent Destailleur 2017-10-13 17:44:31 +02:00
parent 857b59409c
commit 5f021990b4

View File

@ -1412,9 +1412,13 @@ else
print '</td>';
print "</tr>\n";
//$childids = $user->getAllChildIds(1);
if ((! empty($conf->salaries->enabled) && ! empty($user->rights->salaries->read))
|| (! empty($conf->hrm->enabled) && ! empty($user->rights->hrm->employee->read)))
{
// Even a superior can't see this info of its subordinates wihtout $user->rights->salaries->read and $user->rights->hrm->employee->read (setting/viewing is reserverd to HR people).
// However, he can see the valuation of timesheet of its subordinates even without these permissions.
$langs->load("salaries");
// THM