Implement API endpoint to query permissions.

This commit is contained in:
Enno Brehm 2012-04-26 17:26:26 +02:00 committed by Tom Hughes
parent 7b613f0920
commit 6a09f49e71
4 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# create list of permissions
xml.instruct! :xml, :version=>"1.0"
xml.osm("version" => "#{API_VERSION}", "generator" => "OpenStreetMap Server") do
xml.permissions do
@permissions.each do |permission|
xml.permission :name => permission
end
end
end