diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-09 18:15:06 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-09 18:15:06 +0100 |
commit | 211fe84dc40d97df8aa8724906d9170ed4f78477 (patch) | |
tree | 30f5face0950bc7cceea1d2d3d01a43bd4e1a044 /app/controllers/comment_controller.rb | |
parent | 54281fd50c3271835a54ab4bc08d40da09d643ee (diff) |
Revert "Merge remote-tracking branch 'henare_github/patch-1'"
Mistakenly merged into master. Please note that we'll want to merge this work into master on the next release, at which point we'll want to revert this reversion in order that the changes are properly re-applied.
This reverts commit 54281fd50c3271835a54ab4bc08d40da09d643ee, reversing
changes made to 793ca358c37458e6cc4385d2366621aaee93a25e.
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r-- | app/controllers/comment_controller.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb index 988a8a6f8..1552017c2 100644 --- a/app/controllers/comment_controller.rb +++ b/app/controllers/comment_controller.rb @@ -23,13 +23,6 @@ class CommentController < ApplicationController else raise "Unknown type " + params[:type] end - - # Are comments disabled on this request? - # - # There is no “add comment” link when comments are disabled, so users should - # not usually hit this unless they are explicitly attempting to avoid the comment - # block, so we just raise an exception. - raise "Comments are not allowed on this request" if !@info_request.comments_allowed? # Banned from adding comments? if !authenticated_user.nil? && !authenticated_user.can_make_comments? |