mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
Always allow reply as new topic, for users who can reply as new topic
This commit is contained in:
parent
3414e2bb92
commit
52b1d13af7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue