Update bank.php

For authorize line manager to see wages paid
This commit is contained in:
oscim 2020-02-17 11:18:34 +01:00 committed by Laurent Destailleur
parent 31ae0bc06e
commit b0016764c4

View File

@ -289,7 +289,7 @@ if ($action != 'edit' && $action != 'create') // If not bank account yet, $acco
* Last salaries
*/
if (!empty($conf->salaries->enabled) &&
($user->rights->salaries->read && $object->id == $user->id)
( ($object->fk_user == $user->id) || ($user->rights->salaries->read && $object->id == $user->id) )
)
{
$salary = new PaymentSalary($db);