apptension / saas-boilerplate

SaaS Boilerplate - Open Source and free SaaS stack that lets you build SaaS products faster in React, Django and AWS. Focus on essential business logic instead of coding repeatable features!
https://apptension.com/saas-boilerplate
MIT License
2.18k stars 253 forks source link

After changing own role in organisation you need to reload page to remove relevant tabs in menu #596

Open SzramaApptension opened 3 months ago

SzramaApptension commented 3 months ago

Describe the bug

After changing own role in organisation you need to reload page to remove relevant tabs in menu. I would expect it to happen instantly.

Steps to reproduce

Starting conditions: User is one of two Owners in organisation

  1. Log in
  2. Click Organization settings
  3. Click on action icon
  4. Select Change role to Member next to your user
  5. Notice The user role was updated successfully alert
  6. Notice that the role still stays as Owner and menu tabs such as: Payments, Subscriptions and Organization settings are still visible
  7. Reload page
  8. Switch to relevant organization
  9. Notice that only then correct state is visible - relevant tabs in menu are no longer visible

System Info

Tested on QA environment

Logs

No response

Validations