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 <szims...@gmail.com> 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to