You may need to do:
@auth.requires(auth.has_membership('A') or auth.has_membership('B'))
See http://web2py.com/book/default/chapter/08#Combining-Requirements.
Anthony
On Monday, June 6, 2011 1:03:54 PM UTC-4, César Bustíos Benites wrote:
> Hi, is there a way to use this decorator with more than one group? For
> example if i need function X to be use with groups A and B:
>
> @auth.requires_membership('A', 'B')
> def X(): ...
>
> That doesn't work. How can I do that?
>
> Thanks
>

