-
Notifications
You must be signed in to change notification settings - Fork 27
User Management
tylerstalder edited this page Sep 19, 2011
·
4 revisions
Currently, user group assignments are managed in the user.group_membership_bitmask
field in the database. This is managed as a bitmask. The default group can be designated with the bitmask of four binary digits 0000
. So, this means that:
-
1
= Regular issuse. -
2
= Super Admin only. -
4
= Moderator (admin) only. -
8
= Leader only.
To create first user, update the desired account user.group_membership_bitmask
field to 2.
There is no automatic creation of a root user when the application is installed, so we have to do a little magic.
- Create a user through the regular process: http://localhost:8080/join#start
- Directly in the database, add an entry in the following table:
user__user_group
-
user_id
:1
(or if you are not the first user for some reason) -
user_group_id
:1
-
- You can now access the admin section: http://localhost:8080/cms/admin
There are currently 4 different kinds of users defined in the dataabse.
- Regular authenticated user. This kind of user does not actually have a role set to them.
- City Leader [leader]: This user has a different banner on their user account page and has the ability to endorse a project.
- Admin [moderator]: This has the following access ??
- Super Admin [admin]: This can do everything, specifically create new users with administrative privileges.