mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 04:38:47 +08:00
FIX: : trigger user_updated
event only if email changed after user creation.
Follow-up to 1460d7957c5d9b9300034e5e36675cf44cc3bc0f
This commit is contained in:
@ -121,6 +121,7 @@ class EmailUpdater
|
||||
@user.user_emails.create!(email: new_email)
|
||||
end
|
||||
|
||||
DiscourseEvent.trigger(:user_updated, @user)
|
||||
@user.set_automatic_groups
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user