Okay I see.
Good tip the
authenticated_crud_create = auth.requires_login()(crud.create)
form = authenticated_crud_create(db.tablename)
:)
On márc. 22, 15:21, mdipierro wrote:
> yes but how depends on details
>
> you can do
>
> @auth.requires_login()
> @auth.requires_membership()
> @auth.requ
yes but how depends on details
you can do
@auth.requires_login()
@auth.requires_membership()
@auth.requires_permission()
@auth.requires(other... condition...)
to every function in web2py. Here is a neat trick
authenticated_crud_create = auth.requires_login()(crud.create)
form = authenticated_cr
2 matches
Mail list logo