diff --git a/CHANGELOG.md b/CHANGELOG.md index c461d7e..cc73fb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Allow initial for username generation when username in PascalCase or camelCase ## V1.1.1 Allow display initials instead of username on login modal +Fix group config invalid on user group suppression ## V1.1.0 diff --git a/services/UserSSOGroupSync.php b/services/UserSSOGroupSync.php index 6722a3e..eb363b5 100644 --- a/services/UserSSOGroupSync.php +++ b/services/UserSSOGroupSync.php @@ -49,7 +49,7 @@ public function syncSsoGroups(User $user, $ssoGroups, $ssoGroupMapping) foreach (array_diff($userGroups, $ssoGroups) as $groupToRemove) { $groupAcl = $this->wiki->GetGroupACL($groupToRemove) ?? ''; $groupAcl = str_replace($user->getName(), '', $groupAcl); - $groupAcl = str_replace(PHP_EOL . PHP_EOL, '', $groupAcl); + $groupAcl = str_replace(PHP_EOL . PHP_EOL, PHP_EOL, $groupAcl); $this->updateGroupAcl($groupToRemove, trim($groupAcl)); }