Let's discuss this on web2py-developers (feel free to join and I will approve you). Can you explain more in detail how this would work?
On Nov 19, 10:03 am, Carlos <[email protected]> wrote: > Hi, > > I have one proposal: extend auth_membership with a new "reference > auth_context" in order to support a multi-tenant architecture (single > web2py application with multiple tenants / contexts). > > This would be optional, so that everything works exactly the same as > now, plus a new option to support "contexts". > > This way, users would have context-sensitive roles, e.g. one same user > can have the "administrator" role in contextA, plus the same > "administrator" role in contextB, plus an X non-context role, etc. > > Also the "has_membership" decorator would have to be extended to > support a new "context" optional parameter. > > And all this would be fully compatible with the current design (since > "context" is optional). > > What do you think?. > > Carlos

