Hi,

I remember seeing the answer to my question, but because they are
"lost" can not find it.


I need to assign permissions to various roles in a function.


This does not work:
@auth.requires_membership(['role1', 'role2'])
def myfunction():
   return dict()

This does not work:
@auth.requires_membership('role1')
@auth.requires_membership('role2')
def myfunction():
   return dict()

How to do I need?

Regards,
Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to