FIX: skip validation when replying via email for staged users

This commit is contained in:
Régis Hanol 2016-03-14 22:21:18 +01:00
parent 84ab7fdcc7
commit e09e807027

@ -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