From e09e80702798b2fea15cefb23aa6502a3c4bee6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 14 Mar 2016 22:21:18 +0100 Subject: [PATCH] FIX: skip validation when replying via email for staged users --- lib/email/receiver.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index 8372763a849..340b0447d1a 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -74,7 +74,11 @@ module Email message = SubscriptionMailer.send(action, user) Email::Sender.new(message, :subscription).send elsif post = find_related_post - create_reply(user: user, raw: body, post: post, topic: post.topic) + create_reply(user: user, + raw: body, + post: post, + topic: post.topic, + skip_validations: user.staged?) else destination = destinations.first