summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb
index 038665cce..12b1cd990 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