]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/message_controller.rb
Merge 14394:14533 from trunk.
[rails.git] / app / controllers / message_controller.rb
index a04aa82c0c7959e0b504d2a7f0da211a1fde99b7..8f866e512c388fda530304d0da6a84f793268f73 100644 (file)
@@ -3,6 +3,8 @@ class MessageController < ApplicationController
 
   before_filter :authorize_web
   before_filter :require_user
+  before_filter :check_database_readable
+  before_filter :check_database_writable, :only => [:new, :reply, :mark]
 
   # Allow the user to write a new message to another user. This action also 
   # deals with the sending of that message to the other user when the user