Hi
I am building web client application, full multi-tenant and i want to restrict the users to seeing only their companies data.
I have a company_id field in most tables.
On a successful custom login i set their company_id into a global and then use databasemanager fx to lock the foundset for these tables
var id = globals.user_company_id;
var success = databaseManager.addTableFilterParam(servername, null, ‘company_id’, ‘=’, id);
this works in all tables except 1! The table is called ‘user_accounts’ i have the company_id in this table but i can always see all records. All other tables lock into that company_id data perfectly as expected.
The company_id is an integer.
Any help would be appreciated.