In our code we have a before_compile method that runs on all queries and automatically add in some extra filters (based on current context) for multi-tenancy results on the