Add a flag to allow the API to be placed in read-only mode.

This commit is contained in:
Tom Hughes 2007-07-26 17:15:23 +00:00
parent bd07221de5
commit 9dbe1a497a
10 changed files with 56 additions and 14 deletions

View file

@ -2,6 +2,7 @@ class SegmentController < ApplicationController
require 'xml/libxml'
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :check_availability, :only => [:create, :update, :delete]
after_filter :compress_output
def create