Enable external group synchronization deactivation.

This commit is contained in:
Erwan Colin
2021-09-22 12:55:32 +02:00
committed by fguillot
parent e5d22682cb
commit 76a81d0675
4 changed files with 11 additions and 1 deletions

View File

@@ -52,7 +52,9 @@ class UserProfile extends Base
$profile = $this->userModel->getById($user->getInternalId());
} elseif ($user->getExternalIdColumn() && $user->getExternalId()) {
$profile = $this->userSync->synchronize($user);
$this->groupSync->synchronize($profile['id'], $user->getExternalGroupIds());
if (LDAP_GROUP_SYNC) {
$this->groupSync->synchronize($profile['id'], $user->getExternalGroupIds());
}
}
if (! empty($profile) && $profile['is_active'] == 1) {