Update bank.php

This commit is contained in:
Laurent Destailleur 2020-02-18 22:56:37 +01:00 committed by GitHub
parent d1652ee9e3
commit 97b4f68e48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@ if ($action != 'edit' && $action != 'create') // If not bank account yet, $acco
* Last salaries
*/
if (!empty($conf->salaries->enabled) &&
( ($object->fk_user == $user->id) || ($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);