mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 23:04:56 +00:00
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:
commit
babb5b7b52
@ -103,11 +103,11 @@ class TopicViewSerializer < ApplicationSerializer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def can_reply_as_new_topic
|
def can_reply_as_new_topic
|
||||||
scope.can_reply_as_new_topic?(object.topic)
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_can_reply_as_new_topic?
|
def include_can_reply_as_new_topic?
|
||||||
scope.can_create?(Post, object.topic)
|
scope.can_reply_as_new_topic?(object.topic)
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_create_post
|
def can_create_post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user