diff --git a/app/models/message.rb b/app/models/message.rb index 038665ccea..12b1cd990f 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -36,7 +36,7 @@ class Message < ActiveRecord::Base def validate_on_create # Can not reply to a locked topic - errors.add_to_base 'Topic is locked' if root.locked? + errors.add_to_base 'Topic is locked' if root.locked? && self != root end def after_create