Skip to content
Snippets Groups Projects
Commit 241e7658 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #5047 from hregis/3.9_bug

Fix: broken multicompany transverse mode authentication feature
parents 0ef1be93 0a52abab
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,10 @@ class User extends CommonObject
}
else // The fetch was forced on an entity
{
$sql.= " WHERE u.entity IN (0, ".$conf->entity.")";
if (!empty($conf->multicompany->enabled) && !empty($conf->multicompany->transverse_mode))
$sql.= " WHERE u.entity IS NOT NULL"; // multicompany is on in transverse mode or user making fetch is on entity 0, so user is allowed to fetch anywhere into database
else
$sql.= " WHERE u.entity IN (0, ".$conf->entity.")";
}
if ($sid) // permet une recherche du user par son SID ActiveDirectory ou Samba
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment