Kuba,
does the following work for you?
----
def onlogin_add_permission():
if not auth.has_permission(auth.user_group(form.vars.id), 'create',
'my_table'):
auth.add_permission(auth.user_group(form.vars.id),'create','my_table')
auth.settings.login_onaccept = onlogin_add_permission
----
2010/11/18 Kuba Kucharski <[email protected]>:
> one more thing, w/o registration process I cannot do:
> auth.settings.register_onaccept=lambda
> form:auth.add_permission(auth.user_group(form.vars.id),'create','my_table')
>
> how to handle it then? I tried to search for the place in the code
> where the group for the user is created but I cannot find it easily
>
> --
> Kuba
>