rls_rails icon indicating copy to clipboard operation
rls_rails copied to clipboard

8 - Set disabled status in set_tenant

Open yasirazgar opened this issue 4 years ago • 1 comments

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

yasirazgar avatar Feb 25 '21 07:02 yasirazgar

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

sbiastoch avatar Sep 25 '21 09:09 sbiastoch