don't show the add response button if responses are not allowed.
JIRA: FOR-452
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user