Skip to content

Commit

Permalink
fix: Allow user to change his email whatever the email status is
Browse files Browse the repository at this point in the history
fixes #1043
  • Loading branch information
kumy committed Aug 23, 2024
1 parent c82235c commit 462c512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/app/GeoKrety/Email/EmailChange.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ protected function setFromDefault() {
}

protected function allowSend(User $user): bool {
return $user->isEmailValidForAdminTask();
// Allow user to change their mail address, whatever the status is
return true;
}

protected function allowNonProdEnvSend(): bool {
Expand Down

0 comments on commit 462c512

Please sign in to comment.