-
Notifications
You must be signed in to change notification settings - Fork 59
Users and groups
OpenTreeMap uses Django's default user authentication, a custom profile module, a registration module developed by ubernostrum and a reputation module developed by genghisu.
User management settings should be in the settings_<location>.py file. Here is a list of required settings and example defaults:
- REGISTRATION_OPEN = True
- ACCOUNT_ACTIVATION_DAYS = 7
Also required are several settings found in the reputation module's config.py file. The three important items to change as needed are:
- MAX_REPUTATION_LOSS_PER_DAY = 250
- MAX_REPUTATION_GAIN_PER_DAY = 250
- BASE_REPUTATION = 5000
Management users are able to access all user/tree/activity management pages, but not Django's administrative system. To create management users, first create a management group and assign the following permissions:
- auth | user | Can change user
- comments | [all permissions]
- django_requtation | reputation | Can change reputation
- treemap | tree | Can delete tree
Users can be assigned to these groups using the user management page, or in the Django administrative system.
Trusted users can access the Recent Edits management page and assign or remove additional reputation points to fellow users based on their edits. For this system to work correctly, the following Reputation Actions must be created in the Django administrative system:
- add tree
- edit tree
- edit verified
- Administrative Action
The action names are case sensitive. An additional permission must be created in the Django_reputation Permissions area: can_edit_condition with a required reputation value above the base reputation value set in the reputation module's config.py file.
Reputation is earned and lost in the following ways:
+25 points - Adding a tree
+5 points - Editing a tree
+5 points - Receiving a thumbs-up on your edit
+1 point - Receiving a neutral reaction to your edit
-5 points - Receiving a thumbs-down on your edit