]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/segment_controller.rb
Allow the API to be taken offline completely as well as being put into
[rails.git] / app / controllers / segment_controller.rb
index b99f7460f729ed229eca3f4bd9ef9a5d8e6671f9..b547d5cd15489d8f02030e1fa8cef6987f091729 100644 (file)
@@ -3,7 +3,8 @@ class SegmentController < ApplicationController
 
   session :off
   before_filter :authorize, :only => [:create, :update, :delete]
-  before_filter :check_availability, :only => [:create, :update, :delete]
+  before_filter :check_write_availability, :only => [:create, :update, :delete]
+  before_filter :check_read_availability, :except => [:create, :update, :delete]
   after_filter :compress_output
 
   def create