Only use if option of AD is activated. Tiquet: Tickets #3116

This commit is contained in:
m-lopez-f 2015-12-22 14:57:23 +01:00
parent 53466027f1
commit 128610aba8
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ function process_user_login_remote ($login, $pass, $api = false) {
return false;
}
if ($config["auth"] === 'ad' && isset($config['ad_advanced_config']) && $config['ad_advanced_config'])){
if (($config["auth"] === 'ad') && (isset($config['ad_advanced_config']) && $config['ad_advanced_config'])){
$return = enterprise_hook ('prepare_permissions_groups_of_user_ad',
array ($login, $pass, false, true));