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 <[email protected]> wrote: > 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_crud_create(db.tablename) > > or you can do > > if auth.is_logged_in() or auth.has_membership(...) or > auth.has_permissions(...): form= ... > > Massimo > > On Mar 22, 8:11 am, szimszon <[email protected]> wrote: > > > > > Hello! > > > Is there a way to allow crud to user without login but to force login > > to certain other crud form? > > > I make a webpage with crud and auth and I need anonymous access to > > guestbook (protected with recaptcha:) > > > Or I need SQLForm for guestbook? -- 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.

