mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 16:29:32 +08:00
FIX: Do not validate email in TL promotion (#20892)
There is no need to validate the user's emails when promoting/demoting their trust level, this can cause issues in things like Jobs::Tl3Promotions, we don't need to fail in that case when all we are doing is changing trust level.
This commit is contained in:
@ -82,6 +82,7 @@ class Promotion
|
||||
new_value: new_level,
|
||||
)
|
||||
end
|
||||
@user.skip_email_validation = true
|
||||
@user.save!
|
||||
@user.user_profile.recook_bio
|
||||
@user.user_profile.save!
|
||||
|
Reference in New Issue
Block a user