mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: : trigger user_updated event only if email changed after user creation.
Follow-up to 1460d7957c
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