aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/comment_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-05-06 17:34:24 +0100
committerFrancis Irving <francis@mysociety.org>2010-05-06 17:34:24 +0100
commitf341b0388cceef1a02ea56b5b1ca0d744c52c4b7 (patch)
treeb0fb5f256a7b429fbebe7b76ec604eb8efcb1686 /app/controllers/comment_controller.rb
parentd59f746428791971b023d711aa58b5e4cd9a11b5 (diff)
Read only mode.
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r--app/controllers/comment_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb
index dfa31f9ef..d5f8f89fb 100644
--- a/app/controllers/comment_controller.rb
+++ b/app/controllers/comment_controller.rb
@@ -7,6 +7,7 @@
# $Id: comment_controller.rb,v 1.9 2009-03-09 01:17:04 francis Exp $
class CommentController < ApplicationController
+ before_filter :check_read_only, :only => [ :new ]
def new
if params[:type] == 'request'