Skip to content

Commit

Permalink
Update holiday.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 24, 2017
1 parent 314c30f commit c2f8430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/holiday/class/holiday.class.php
Expand Up @@ -1315,9 +1315,9 @@ function fetchUsers($stringlist=true, $type=true, $filters='')
if (! empty($conf->multicompany->enabled) && ! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE))
{
$sql.= ", ".MAIN_DB_PREFIX."usergroup_user as ug";
$sql.= " WHERE (ug.fk_user = u.rowid";
$sql.= " WHERE ((ug.fk_user = u.rowid";
$sql.= " AND ug.entity = ".$conf->entity.")";
$sql.= " OR u.admin = 1";
$sql.= " OR u.admin = 1)";
}
else
$sql.= " WHERE u.entity IN (0,".$conf->entity.")";
Expand Down

0 comments on commit c2f8430

Please sign in to comment.