Skip to content

Commit

Permalink
Fix multicompany
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 7, 2023
1 parent cb81978 commit dc8616a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/salaries/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,11 @@
//$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."payment_salary as ps ON ps.fk_salary = s.rowid, ";
$sql .= " ".MAIN_DB_PREFIX."user as u";
$sql .= " WHERE u.rowid = s.fk_user";
$sql .= " AND s.entity IN (".getEntity('payment_salaries').")";
$sql .= " AND s.entity IN (".getEntity('salaries').")";
if (!$user->hasRight('salaries', 'readall')) {
$sql .= " AND s.fk_user IN (".$db->sanitize(join(',', $childids)).")";
}
//print $sql;

// Search criteria
if ($search_ref) {
Expand Down

0 comments on commit dc8616a

Please sign in to comment.