rls_rails
rls_rails copied to clipboard
8 - Set disabled status in set_tenant
Fixes: https://github.com/suus-io/rls_rails/issues/8 Set disabled status in set_tenant
Before fix
RLS.set_tenant Tenant.find(33) => {:user_id=>"", :tenant_id=>"33", :disabled=>"true"}
2.6.6 :026 > RLS.disabled? => false
After fix
RLS.set_tenant Tenant.find(33) => {:user_id=>"", :tenant_id=>"33", :disabled=>"false"}
2.6.6 :026 > RLS.disabled? => false
Hi yasirazgar,
thanks for your PR! Sorry for having this PR still open, we need to check first if this introduces any breaking changes in our software.
Best,
Stephan