include CanCan::Ability
def initialize(user)
+ can [:relation, :relation_history, :way, :way_history, :node, :node_history, :changeset, :note], :browse
can :index, ChangesetComment
can [:index, :permalink, :edit, :help, :fixthemap, :offline, :export, :about, :preview, :copyright, :key, :id], :site
can [:index, :rss, :show, :comments], DiaryEntry
before_action(:except => [:query]) { |c| c.check_database_readable(true) }
before_action :require_oauth
around_action :web_timeout
+ authorize_resource :class => false
def relation
@type = "relation"