Allow the API to be taken offline completely as well as being put into
[rails.git] / app / controllers / way_controller.rb
index 935ff3a72f9e862124f3d6de3a72a569f3cbf54a..d569991af109469c2eee4c39dde9dd189bbf5e1a 100644 (file)
@@ -3,7 +3,8 @@ class WayController < 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