This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Is it possible to assign privileges (edit/view) to users?

-1

I want some users to be able to view the map, others view +edit. How can this be accomplished? edit: on a private osm server.

asked 07 Nov '11, 20:27

alexz's gravatar image

alexz
225212226
accept rate: 0%

edited 07 Nov '11, 21:39


One Answer:

3

This is not a question about OpenStreetMap and therefore off-topic on this site.

When you talk about "view the map", if you mean the map tiles, then a simple web server based user authentication could solve your problem. As for editing, the OSM server already has used authentication for that. If you want (your version of) the OSM API to only respond to data requests for authenticated users, you will have to amend the Rails code with the appropriate authentication checks. If you want to combine both, and make it so that even tiles are only served to users who have an account with the Rails system then you could hack up a custom authentication module for your web server that authenticates against the Rails backend's user database.

But as I said, this has nothing to do with OSM any more.

answered 08 Nov '11, 08:06

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

1

... these special questions dealing with the core software that OSM use could be better placed for examole on http://lists.openstreetmap.org/listinfo/rails-dev or some other developer mailing list.

(08 Nov '11, 16:56) stephan75

Source code available on GitHub .