ui icon indicating copy to clipboard operation
ui copied to clipboard

Switching company shows blank screen with unauthorized action error

Open adrianaditech opened this issue 10 months ago • 0 comments

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

  1. Open an Invoice Ninja system with >1 companies
  2. Open ex. a client or invoice
  3. 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.

Screenshots

image

adrianaditech avatar Apr 13 '24 01:04 adrianaditech