We have an application which is multi-tenant (lots of users all accessing their own data, similar to something like Basecamp).
Question is, what is the simplest and easiest way in Rails to ensure that users can only see their own accounts data? Is it a case of going and checking every single query?
A way to make that happen:
So, yes, in a multi-tenant database, you need to check every query.