hipsterjazzbo / Landlord

A simple, single database multi-tenancy solution for Laravel 5.2+
MIT License
614 stars 138 forks source link

Adds the ability to include records with a null tenant ID field #48

Closed paul-crashley closed 7 years ago

paul-crashley commented 7 years ago

Adds the ability to include records with a null tenant ID field in queries.

For example if there is a list of base system categories that can be added to by the users(s) of an individual tenant for their sole use.

Re-sets the global scope queries to add 'OR WHERE tenant_field_id IS NULL'

hipsterjazzbo commented 7 years ago

Sorry, this is not something I want to include in Landlord. This package is specifically designed to be rock-solid on acting as a tenant whitelist, and protecting devs from tenancy leaks. This PR is too dangerous with that goal in mind. Thanks though!