WeKnora/internal/application
jiahao6635 d7a620d278 fix(tenant): clear stale home tenant after member removal
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
2026-08-07 14:35:10 +08:00
..
repository fix(wiki): exclude archived pages from stats queries 2026-08-06 11:41:32 +08:00
service fix(tenant): clear stale home tenant after member removal 2026-08-07 14:35:10 +08:00