Excellent! Thank you Anthony this solved my problem. Also thank you for the
clear explanations :-)
*cheers
On Sun, Jan 12, 2014 at 6:05 AM, Anthony wrote:
> If these groups are for the purpose of controlling access to resources,
> you might consider using the built-in role-based access control
If these groups are for the purpose of controlling access to resources, you
might consider using the built-in role-based access control available via
Auth. You would create Auth groups and then assign users as members to
groups. You could then use auth.has_membership() and
@auth.requires_member
There is a built-in feature for RBAC (Auth). Check the book
http://www.web2py.com/books/default/chapter/29/09/access-control#Access-Control
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2p
3 matches
Mail list logo