Merge branch '5.0' of git@github.com:Dolibarr/dolibarr.git into 5.0
This commit is contained in:
commit
4a330af4bf
@ -805,7 +805,7 @@ class UserGroup extends CommonObject
|
|||||||
$muser=new User($this->db);
|
$muser=new User($this->db);
|
||||||
$muser->fetch($val->id);
|
$muser->fetch($val->id);
|
||||||
$info2 = $muser->_load_ldap_info();
|
$info2 = $muser->_load_ldap_info();
|
||||||
$valueofldapfield[] = $muser->_load_ldap_dn($info2);
|
$valueofldapfield[] = $muser->_load_ldap_dn($info2);
|
||||||
}
|
}
|
||||||
$info[$conf->global->LDAP_GROUP_FIELD_GROUPMEMBERS] = (!empty($valueofldapfield)?$valueofldapfield:'');
|
$info[$conf->global->LDAP_GROUP_FIELD_GROUPMEMBERS] = (!empty($valueofldapfield)?$valueofldapfield:'');
|
||||||
}
|
}
|
||||||
@ -833,7 +833,11 @@ class UserGroup extends CommonObject
|
|||||||
$this->note='This is a note';
|
$this->note='This is a note';
|
||||||
$this->datec=time();
|
$this->datec=time();
|
||||||
$this->datem=time();
|
$this->datem=time();
|
||||||
$this->members=array($user->id); // Members of this group is just me
|
|
||||||
|
// Members of this group is just me
|
||||||
|
$this->members=array(
|
||||||
|
$user->id => $user
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user