Normally roles are stored in database so you have a chicken and egg problem.

You can have two databases. One for users and one for other data. You can 
conditionally instantiate the other databases:

if auth.has_membership('superhero'): db2 = DAL(.....)

On Thursday, 14 May 2015 04:58:20 UTC-5, Encompass solutions wrote:
>
> I am building a database that needs to be very secure for all those "just 
> in case" situations. 
> I want to restrict the database access based on roles that I setup.  Does 
> web2py even have this functionality or is this something I have to do with 
> SQLAlchemy or something?
> BR,
> Jason Brower
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to