openstreetmap/openstreetmap-website — pull request #45 by freundchen (2012-04-26 15:38:19+00:00)
Title: Implement API endpoint to query permissions.

This commit adds an API endpoint where a api client can query which permissions have been granted. Primary use is to find out what can be done with an access token (since a user can always check off permissions during Oauth authentication/authorization). We suggested this feature on the openstreetmap-dev-list:

http://lists.openstreetmap.org/pipermail/dev/2012-April/024858.html

This feature allows for more user-friendly Oauth client applications as they can e.g. find out whether they can write to the map without actually changing it (thus creating a changeset) and to give feedback to the authenticating user.

Remark: we found 3 failing tests in the original code, which are still failing (test_changes_simple, test_changes_zoom_valid, test_hours_valid).