From 141a5692eb327d966a05429728391ceafa53fdcb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 16 Apr 2009 21:38:29 +0000 Subject: [PATCH] Fixed to work with merged changes to api availability checks. --- app/controllers/changeset_controller.rb | 4 ++-- app/controllers/old_relation_controller.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index bba012a9c..a363a26e1 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -7,8 +7,8 @@ class ChangesetController < ApplicationController session :off, :except => [:list, :list_user, :list_bbox] before_filter :authorize_web, :only => [:list, :list_user, :list_bbox] before_filter :authorize, :only => [:create, :update, :delete, :upload, :include, :close] - before_filter :check_write_availability, :only => [:create, :update, :delete, :upload, :include] - before_filter :check_read_availability, :except => [:create, :update, :delete, :upload, :download, :query] + before_filter :check_api_writable, :only => [:create, :update, :delete, :upload, :include] + before_filter :check_api_readable, :except => [:create, :update, :delete, :upload, :download, :query] after_filter :compress_output # Help methods for checking boundary sanity and area size diff --git a/app/controllers/old_relation_controller.rb b/app/controllers/old_relation_controller.rb index 84d0b0c90..f8ebbd070 100644 --- a/app/controllers/old_relation_controller.rb +++ b/app/controllers/old_relation_controller.rb @@ -2,7 +2,7 @@ class OldRelationController < ApplicationController require 'xml/libxml' session :off - before_filter :check_read_availability + before_filter :check_api_readable after_filter :compress_output def history -- 2.43.2