Allow the API to be taken offline completely as well as being put into
[rails.git] / app / controllers / node_controller.rb
index 4e2a9b7f22a9f532303eecdd8098928bb36f5f19..0a3897fe9986da7318dafd557c84949a91b8020e 100644 (file)
@@ -3,7 +3,8 @@ class NodeController < 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