Update bank.php
For authorize line manager to see wages paid
This commit is contained in:
parent
4b5cda5cd2
commit
d1652ee9e3
@ -289,7 +289,7 @@ if ($action != 'edit' && $action != 'create') // If not bank account yet, $acco
|
|||||||
* Last salaries
|
* Last salaries
|
||||||
*/
|
*/
|
||||||
if (!empty($conf->salaries->enabled) &&
|
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);
|
$salary = new PaymentSalary($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user