diff --git a/htdocs/user/bank.php b/htdocs/user/bank.php index 188a6b59d31..9ff7bd56634 100644 --- a/htdocs/user/bank.php +++ b/htdocs/user/bank.php @@ -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);