From f4ce44c881fde53ea1ab75198fa4012b9baf80e6 Mon Sep 17 00:00:00 2001 From: jsa Date: Tue, 4 Feb 2014 12:25:06 -0500 Subject: [PATCH] don't show the add response button if responses are not allowed. JIRA: FOR-452 --- .../coffee/src/discussion/views/discussion_thread_view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/static/coffee/src/discussion/views/discussion_thread_view.coffee b/common/static/coffee/src/discussion/views/discussion_thread_view.coffee index 95cda6b255fc..57297a1a1ebc 100644 --- a/common/static/coffee/src/discussion/views/discussion_thread_view.coffee +++ b/common/static/coffee/src/discussion/views/discussion_thread_view.coffee @@ -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()