I'd like to create my own scope based off of the Landlord scope.
Unfortunately, it seems that enabled and disabled are private so I can't bail out of apply early.
The reason I'd like this functionality is I have a scenario where I'd like optional tenant scoping on a table. I.e. there are roles in system that are shared globally (basically presets), and then there are roles that are tied to specific tenants. Roles that are shared globally do not have a tenant_id but they're on the same table.
I'd like to create my own scope based off of the Landlord scope.
Unfortunately, it seems that enabled and disabled are private so I can't bail out of apply early.
The reason I'd like this functionality is I have a scenario where I'd like optional tenant scoping on a table. I.e. there are roles in system that are shared globally (basically presets), and then there are roles that are tied to specific tenants. Roles that are shared globally do not have a tenant_id but they're on the same table.