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

JIRA: FOR-452
This commit is contained in:
jsa
2014-02-04 12:25:06 -05:00
committed by Feanil Patel
parent 5e5c59cab2
commit 10364887d2

View File

@@ -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()