RemoveMember left users.tenant_id and LastActiveTenantID pointing at the removed workspace, so login synthesised it back into the space switcher while RBAC returned 403 on every request. After a successful soft-delete, clear dangling home/preference pointers and revoke outstanding sessions. On the login path, validate that home still has an active membership and stop synthesising memberships from users.tenant_id when the membership table is authoritative and empty. Fixes #2586 |
||
|---|---|---|
| .. | ||
| repository | ||
| service | ||