It's not working :(
On Jun 6, 12:35 pm, Joaquin Orbe <joaquino...@gmail.com> wrote: > On Mon, Jun 6, 2011 at 2:03 PM, Cesar Bustios <cesarbust...@gmail.com> 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 > > Hi, > try this: > > @auth.requires(auth.requires_membership('A') or auth.requires_membership('B')) > def X(): ... > > Joaquin.