User roles are now synced with LDAP at each login
This commit is contained in:
@@ -44,10 +44,14 @@ class UserProperty
|
||||
*/
|
||||
public static function filterProperties(array $profile, array $properties)
|
||||
{
|
||||
$excludedProperties = array('username');
|
||||
$values = array();
|
||||
|
||||
foreach ($properties as $property => $value) {
|
||||
if (array_key_exists($property, $profile) && ! self::isNotEmptyValue($profile[$property])) {
|
||||
if (self::isNotEmptyValue($value) &&
|
||||
! in_array($property, $excludedProperties) &&
|
||||
array_key_exists($property, $profile) &&
|
||||
$value !== $profile[$property]) {
|
||||
$values[$property] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user