Skip to content

Commit

Permalink
Always allow reply as new topic, for users who can reply as new topic
Browse files Browse the repository at this point in the history
  • Loading branch information
tms committed Mar 11, 2013
1 parent 3414e2b commit 52b1d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/serializers/topic_view_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ def voted_in_topic
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
Expand Down

0 comments on commit 52b1d13

Please sign in to comment.