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

How to grant different privileges to users?

-1

I'm using a private osm server. I want to make myself as administrator and grant other users different privileges. How can that be achieved?

I noticed there is a file called user_roles_controller.rb so i had a guess that i can access the users and edit them by going to localhost/users. But then i get an error message:You need to be an administrator to perform that action.

asked 23 Nov '11, 13:19

alexz's gravatar image

alexz
225212226
accept rate: 0%

edited 30 Jul '18, 10:47

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


2 Answers:

2

answered 23 Nov '11, 13:22

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

1

Thx, but that was mean.

(23 Nov '11, 13:33) alexz

1

You have to add an initial administrator manually, either from the rails console, or from an SQL command line.

After that the initial administrator can grant further people moderator or administrator powers through the web site by clicking the star icons on a user's user page.

answered 23 Nov '11, 13:29

TomH's gravatar image

TomH ♦♦
3.3k83943
accept rate: 20%

Source code available on GitHub .