Merge branch '2179-Permisos-avanzados-de-LDAP-dev' into 'develop'

Fixed atributtes ldap

See merge request artica/pandorafms!1425
This commit is contained in:
vgilc 2018-04-17 16:24:20 +02:00
commit 725bbb7d2d
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ function process_user_login_remote ($login, $pass, $api = false) {
$attributes = $ldap_adv_perm['groups_ldap'];
foreach ($attributes as $attr) {
$attr = explode('=',$attr);
$attr = explode('=', $attr, 2);
if(in_array($attr[1],$sr[$attr[0]])) {
$permissions[$i]["profile"] = $ldap_adv_perm['profile'];
$permissions[$i]["groups"] = $ldap_adv_perm['group'];