multi-tenant app tables

176 views
Skip to first unread message

Nik Go

unread,
Nov 28, 2011, 6:39:12 AM11/28/11
to web...@googlegroups.com
I've already set the request_tenant field and each domain can only see the data they create. 

However, from the localhost, I can only see auth_user data, and data created from localhost. How do I allow access to all data from the localhost administrators? 

Also, how to I allow tenants to access to common/shared tables between them.

Massimo Di Pierro

unread,
Nov 28, 2011, 9:38:45 AM11/28/11
to web2py-users
if condition:
db._request_tenant = 'ignore_tenant'

GoldenTiger

unread,
Nov 28, 2011, 10:48:35 AM11/28/11
to web2py-users
Are you talking about domains on a remote server?
Reply all
Reply to author
Forward
0 new messages