Skip to content

Commit

Permalink
Remove redundant log message from $user->updateExternalGroups()
Browse files Browse the repository at this point in the history
  • Loading branch information
forevermatt committed Sep 4, 2024
1 parent cbc532f commit ca040ad
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions application/common/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -1094,17 +1094,7 @@ public function updateExternalGroups(string $appPrefix, string $csvAppExternalGr
$this->addInMemoryExternalGroups($appExternalGroups);

$this->scenario = self::SCENARIO_UPDATE_USER;
$saved = $this->save(true, ['groups_external']);
if ($saved) {
return true;
} else {
Yii::warning(sprintf(
'Failed to update external groups for %s: %s',
$this->email,
join(', ', $this->getFirstErrors())
));
return false;
}
return $this->save(true, ['groups_external']);
}

/**
Expand Down

0 comments on commit ca040ad

Please sign in to comment.