On Monday, June 6, 2011 1:35:23 PM UTC-4, Joaquin Orbe wrote:
>
> Hi,
> try this:
>
> @auth.requires(auth.requires_membership('A') or
> auth.requires_membership('B'))
> def X(): ...
>
I think it would need to be auth.has_membership, not
auth.requires_membership (the latter is intended to be used as a decorator
and therefore returns a function, not a True/False result).
Anthony
- [web2py] About auth.requires_membership() Cesar Bustios
- Re: [web2py] About auth.requires_membership() Joaquin Orbe
- [web2py] Re: About auth.requires_membership() Cesar Bustios
- [web2py] Re: About auth.requires_membership() Cesar Bustios
- [web2py] Re: About auth.requires_membership... Cesar Bustios
- Re: [web2py] About auth.requires_membership() Anthony
- [web2py] Re: About auth.requires_membership() Anthony

