Merge pull request #418 from tms/always-allow-reply-as-new

Always allow reply as new topic, for users who can reply as new topic
This commit is contained in:
Sam 2013-03-11 17:27:54 -07:00
commit babb5b7b52

View File

@ -103,11 +103,11 @@ class TopicViewSerializer < ApplicationSerializer
end
def can_reply_as_new_topic
scope.can_reply_as_new_topic?(object.topic)
true
end
def include_can_reply_as_new_topic?
scope.can_create?(Post, object.topic)
scope.can_reply_as_new_topic?(object.topic)
end
def can_create_post