I always use this way:

@auth,requires(auth.has_membership('vcard') or auth.has_membership('root')
or auth.has_membership('other'))
def action():
     .....

@auth.requires_membership does not support a list of conditions.

On Thu, Mar 8, 2012 at 5:19 AM, Annet <[email protected]> wrote:

> In a controller I decorate functions like this:
>
> @auth.requires_membership(VCARD or ROOT)
>
> so far I didn't get any error. Is this the correct syntax to allow
> more than one group of users to access a function?
>
>
> Kind regards,
>
> Annet




-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to