class BrowseController < ApplicationController
layout 'site'
+ before_filter :set_locale
before_filter :authorize_web
before_filter { |c| c.check_database_readable(true) }
require 'xml/libxml'
session :off, :except => [:list, :list_user, :list_bbox]
+ before_filter :set_locale, :only => [: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 :require_public_data, :only => [:create, :update, :delete, :upload, :include, :close]
class ChangesetTagController < ApplicationController
layout 'site'
+ before_filter :set_locale
+
def search
@tags = ChangesetTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
end
class ExportController < ApplicationController
+
+ before_filter :set_locale
+
def start
end
class MessageController < ApplicationController
layout 'site'
+ before_filter :set_locale
before_filter :authorize_web
before_filter :require_user
before_filter :check_database_readable
class SiteController < ApplicationController
+ before_filter :set_locale
before_filter :authorize_web
before_filter :require_user, :only => [:edit]
class TraceController < ApplicationController
layout 'site'
+ before_filter :set_locale
before_filter :authorize_web
before_filter :require_user, :only => [:mine, :create, :edit, :delete, :make_public]
before_filter :authorize, :only => [:api_details, :api_data, :api_create]
layout 'site'
before_filter :authorize, :only => [:api_details, :api_gpx_files]
+ before_filter :set_locale, :except => [:api_details, :api_gpx_files]
before_filter :authorize_web, :except => [:api_details, :api_gpx_files]
before_filter :require_user, :only => [:set_home, :account, :go_public, :make_friend, :remove_friend, :upload_image, :delete_image]
before_filter :check_database_readable, :except => [:api_details, :api_gpx_files]