Hi,

Excellent product web2py but still trying to get my head around some of the 
structure
and some burning questions from the documentation.

Question 2:
Hi at the moment every time a user registers, a new 'role' is created for 
the user.
Basically I want three roles:
USER
STAFF
ADMIN

Admin goes without saying and can be manually changed in the DB.
When a user registers online, how do I get them to be in the group role 
'USER'
Afterwards I will have the admin with the ability to add STAFF group to a 
particular USER.

Do I have to define the roles in the DB after by code in db.py once the 
tables are created, what is the correct way?
Also how do I get any user who registers to be automatically in group 
'USER'?
Cause at the moment a new role is created everytime.


Thanks to anyone answering my questions.

Den

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to