Skip to content

Commit

Permalink
fix(UserField): also add to group when acount already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem committed Feb 8, 2022
1 parent d583666 commit aa7fea2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/bazar/fields/UserField.php
Expand Up @@ -114,6 +114,9 @@ public function formatValuesBeforeSave($entry)

if ($value && $this->isUserByName($value)) {
$wikiName = $value;
// add in groups
$this->addUserToGroups($wikiName, $entry);

$this->updateEmailIfNeeded($wikiName, $entry[$this->emailField] ?? null);
} else {
$wikiName = $entry[$this->nameField];
Expand Down

0 comments on commit aa7fea2

Please sign in to comment.