Commit 42746856 by jsa Committed by Feanil Patel

don't show the add response button if responses are not allowed.

JIRA: FOR-452
parent 7acc1161
......@@ -130,7 +130,7 @@ if Backbone?
view.afterInsert()
renderAddResponseButton: ->
if @model.hasResponses()
if @model.hasResponses() and @model.can('can_reply')
@$el.find('div.add-response').show()
else
@$el.find('div.add-response').hide()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment