ui
ui copied to clipboard
Switching company shows blank screen with unauthorized action error
Setup
All versions
Interface
- Only tested in React
Describe the bug
When you switch from one company to another, it keeps the last company's page open so after the switch it says 'unauthorized action' since it's still trying to show the user the last company's page (ex. a client in the previous company) after you switched to a different company.
Steps To Reproduce
- Open an Invoice Ninja system with >1 companies
- Open ex. a client or invoice
- Switch to a different company. you will see the unauthorized action error show up.
Expected Behavior
User should be taken to the dashboard in the company they are switching INTO, instead of seeing error.