growthbook / growthbook

Open Source Feature Flagging and A/B Testing Platform

Home Page:https://www.growthbook.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Local storage stored previous organization doesn't take into account if current user has access

msamper opened this issue · comments

Summary

We store the previously used organization in local storage, but this becomes an issue if you switch the account you're logged into and the new account doesn't have access to the previously used organization.

Expected Behavior

You login to the second account and are able to access your organization successfully.

Current Behavior

We try to access the previously used organization for the user logging in that doesn't have access and hit a no access page without an option to switch to an organization you actually have access to. User will be stuck without access to GrowthBook and the only fix is to clear the previously used organization property in local storage

Hey @msamper @Auz Can I give it a try?