On Wednesday, October 30, 2013 6:48:51 AM UTC-7, Richard wrote: > > If you have two diffrents companie you may consider multi-tenant site. >
What's your recommended readling list for this? /dps > > Richard > > > On Wed, Oct 30, 2013 at 9:47 AM, Richard Vézina > <ml.richa...@gmail.com<javascript:> > > wrote: > >> It depends of what you do with the groups... You have to write your own >> logic around them... For instance you have driver group, so in your code >> you let driver group access only page/controller fucntion and form they are >> allow and in those controller you control the flow of what they can do the >> way you want. The group only diserve the purpose to determine if a user is >> allow or not to do something... >> >> So you can put a user at the same time in a group of driver and a >> dispatcher if you want. So if he want to behave like a driver he can, and >> when he want to behave like a dispatcher it can too... >> >> Hope it helps. >> >> Richard >> >> >> On Tue, Oct 29, 2013 at 10:32 PM, raferbop <rafe...@gmail.com<javascript:> >> > wrote: >> >>> Richard, >>> >>> I am trying to create a number of number of groups, who are assigned >>> users with different roles. A good example is where you have different taxi >>> companies, that have its own dispatch personnel and drivers. For example, >>> lets say you have 2 companies with the following employees; >>> >>> Company A >>> 1.) Mark Biggs - Driver >>> 2.) Kerry Hinds - Dispatcher >>> >>> Company B >>> 1.) Mimi Johnson - Driver >>> 2.) David Hanson - Dispatcher >>> >>> I want to create 2 groups, add employees to each, an assign roles. >>> >>> I read the chapter on access control, but I still don't understand how >>> to create a multi-group user database. >>> >>> >>> On Tuesday, October 29, 2013 11:20:02 AM UTC-5, Richard wrote: >>> >>>> What do you want exactly? auth_membership is a many-to-many table that >>>> put in relation auth_user and auth_group... >>>> >>>> What do you mean by implement auth_group, etc. you don't need to, they >>>> are built-in web2py... >>>> >>>> If you explain more what you want exactly we can provide more insight >>>> on what you need... >>>> >>>> If you just want to activate RBAC you should read the book, about that >>>> : >>>> http://web2py.com/books/default/chapter/29/09/access-control?search=RBAC#Access-Control >>>> >>>> Richard >>>> >>>> >>>> On Tue, Oct 29, 2013 at 10:46 AM, raferbop <rafe...@gmail.com> wrote: >>>> >>>>> >>>>> I am having a difficult time in understanding how to implement the >>>>> above functions, and the chapter on authentication skims over the topic. >>>>> Massimo has some great examples in the appliances section, but I haven't >>>>> come across an example that utilizes a many-to-many relationship with >>>>> respect to groups and roles. I would appreciate if someone could direct >>>>> me >>>>> to some really good or extensive tutorials on that subject area. >>>>> >>>>> Kind regards, >>>>> -- >>>>> 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+un...@googlegroups.com. >>>>> >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>> >>>> -- >>> 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+un...@googlegroups.com <javascript:>. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> > -- 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/groups/opt_out.