Don't resend confirm_address if profile is silenced
This commit is contained in:
parent
e9516ea4dd
commit
47ae21c08e
|
@ -64,6 +64,11 @@ function mailConfirmAddress(Confirm_address $ca)
|
|||
{
|
||||
try {
|
||||
$user = User::getByID($ca->user_id);
|
||||
$profile = $user->getProfile();
|
||||
if ($profile->isSilenced()) {
|
||||
$ca->delete();
|
||||
return;
|
||||
}
|
||||
if ($user->email === $ca->address) {
|
||||
throw new AlreadyFulfilledException('User already has identical confirmed email address.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user