]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Merge remote-tracking branch 'upstream/pull/5391'
[rails.git] / app / controllers / notes_controller.rb
index c47a3abfb9a1e3d605b0fb3e7d92cc072de6fffa..c40e776b444074efc192c9e4ae496924a05dc640 100644 (file)
@@ -44,5 +44,7 @@ class NotesController < ApplicationController
     render :template => "browse/not_found", :status => :not_found
   end
 
-  def new; end
+  def new
+    render :action => :new_readonly if api_status != "online"
+  end
 end