]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
We don't need an extra method for the amf controller for saving nodes, just catch...
[rails.git] / app / controllers / diary_entry_controller.rb
index 3592ccb4fb683ce50558ca14dd76580ac9e98fde..3ee36af21a9fb53ac5777344ada62cc4a23bce9e 100644 (file)
@@ -3,7 +3,8 @@ class DiaryEntryController < ApplicationController
 
   before_filter :authorize_web
   before_filter :require_user, :only => [:new, :edit]
 
   before_filter :authorize_web
   before_filter :require_user, :only => [:new, :edit]
-  before_filter :check_database_availability
+  before_filter :check_database_readable
+  before_filter :check_database_writable, :only => [:new, :edit]
 
   def new
     @title = 'New diary entry'
 
   def new
     @title = 'New diary entry'