The group information is loaded on login and cached in the session. If you check
auth.user_groups you find a dictionary of {group_id:group_role}. On Wednesday, 25 June 2014 13:08:17 UTC-5, Carlos Zenteno wrote: > > I am classifying my users within groups (ie, carpenters group) but I am > wondering > if it would be useful or more efficient to also add a field in auth_user > (ie, is_carpenter). > > Would it be faster to check the is_carpenter flag in the db or to do it > from the auth > system checking the membership of the user to the group? > > Would it be better to do both? use the group to restricting functions and > check > the field for other logic? > > thanks... > -- 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.