Hi weheh
if you've added this line to your db.py model
auth.settings.create_user_groups = True
then you'll have a group created automatically per registering a new
user and called 'user_id' where id is the id of the registered user
then you can add permissions on that group as you wish and if you want
a user to have full access on a table you can do so
then you can check if a user can do something using if
auth.has_permission('permission', db_table, record_id, auth.user.id)
auth_group already has group_id field so there's no need for
group_name since whenever you check a membership you use
if auth.has_membership(role)
and by the way
crud.settings.auth = auth in db.py has the effect of preventing user
from accessing any crud form unless he has specific permissions
you can check the manual [authentication chapter] for more info
Regards,
Hamdy
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.