Skip to content

Commit

Permalink
Merge pull request #4 from YesWiki/fix-group-sync
Browse files Browse the repository at this point in the history
Fix group config invalid on user group suppression
  • Loading branch information
mrflos authored Apr 10, 2024
2 parents 69e3670 + 88affa2 commit 87c8ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion services/UserSSOGroupSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 87c8ff3

Please sign in to comment.