Re: [web2py] Ways to check auth conditions (aside from decorating a whole function)

2012-03-12 Thread monotasker
Ah . . . you're right. Sorry for not reading more carefully. I think some of this *has* been documented better since the version 3 book too, which is great. Ian On Monday, March 12, 2012 11:44:01 AM UTC-4, Richard wrote: > > I think pretty everithing can be find in this chapter if you read it

Re: [web2py] Ways to check auth conditions (aside from decorating a whole function)

2012-03-12 Thread Richard Vézina
I think pretty everithing can be find in this chapter if you read it carefully. http://web2py.com/books/default/chapter/29/9#Authorization-and-CRUD Your is_member = auth.has_membership(group_id, user_id, role) * * * * Does it help? Richard On Mon, Mar 12, 2012 at 11:34 AM, monotasker wrote

[web2py] Ways to check auth conditions (aside from decorating a whole function)

2012-03-12 Thread monotasker
In digging through the discussions here I've come across two auth methods that allow for checking a user's authorization: auth.is_logged_in() and auth.has_permission() These are really useful, but aren't documented in the web2py book (They're used a couple of times in other recipes, but the