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,6 +207,9 @@ class User extends CommonObject
}
else // The fetch was forced on an 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.")";
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment