fix(32.2): WR-05 hand the deactivate revocation the plain transaction

The deactivate lifecycle fired BackendAccessRevokedEvent with actionDB's Unscoped session, so a listener's Delete through ev.Tx was a hard delete only for that reason. It now passes the save's transaction like every other site.
This commit is contained in:
Jakub Zych
2026-11-21 09:21:59 +01:00
parent a261a8fdfe
commit 60bc6ee68f
3 changed files with 15 additions and 2 deletions

View File

@@ -18,7 +18,8 @@ import (
//
// It is fired synchronously through app.Events.Fire as a
// *BackendAccessRevokedEvent inside the transaction of the save, before the
// commit, with that transaction in Tx. A listener's error is returned to the
// commit, with that transaction in Tx (the transaction itself at every
// site, never an Unscoped session). A listener's error is returned to the
// save and rolls it back, so the change and the revocation commit together
// or not at all. A listener must write through Tx and must not open its own
// transaction. Tx is never nil: a site without its save's transaction