Better comments
This commit is contained in:
parent
f4b1d95b3e
commit
042556a9cf
@ -314,7 +314,7 @@ $dolibarr_main_db_prefix='';
|
|||||||
// multicompany_transverse_mode
|
// multicompany_transverse_mode
|
||||||
// Prerequisite: Need external module "multicompany"
|
// Prerequisite: Need external module "multicompany"
|
||||||
// Pyramidal (0): The rights and groups are managed in each entity. Each user belongs to the entity he was created into.
|
// Pyramidal (0): The rights and groups are managed in each entity. Each user belongs to the entity he was created into.
|
||||||
// Transversal (1): The user is managed only into master entity and belongs to all entities or only one dedicated entity.
|
// Transversal (1): The user is created and managed only into master entity but can login to all entities.
|
||||||
// Default value: 0 (pyramidal)
|
// Default value: 0 (pyramidal)
|
||||||
// Examples:
|
// Examples:
|
||||||
// $multicompany_transverse_mode='1';
|
// $multicompany_transverse_mode='1';
|
||||||
|
|||||||
@ -173,7 +173,11 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
|
|||||||
global $mc;
|
global $mc;
|
||||||
|
|
||||||
$ret=$mc->checkRight($user->id, $entitytotest);
|
$ret=$mc->checkRight($user->id, $entitytotest);
|
||||||
if ($ret < 0) $login=false; // provoque l'echec de l'identification
|
if ($ret < 0)
|
||||||
|
{
|
||||||
|
dol_syslog("Failed to checkRight by module multicompany for user id = ".$user->id." into entity ".$entitytotest);
|
||||||
|
$login=false; // force error of authentication
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -213,7 +213,7 @@ if ($action == 'add' && $canadduser)
|
|||||||
$ret = $extrafields->setOptionalsFromPost($extralabels,$object);
|
$ret = $extrafields->setOptionalsFromPost($extralabels,$object);
|
||||||
if ($ret < 0) $error++;
|
if ($ret < 0) $error++;
|
||||||
|
|
||||||
// If multicompany is off, admin users must all be on entity 0.
|
// Set entity property
|
||||||
$entity=GETPOST('entity','int');
|
$entity=GETPOST('entity','int');
|
||||||
if (! empty($conf->multicompany->enabled))
|
if (! empty($conf->multicompany->enabled))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user