Repository navigation
fix(auth): an address two disabled accounts share gets one notification - #626
PiquelChips wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Disabling an account releases its addresses, and nobody owns an address once every account that verified it is disabled. Each of those accounts then passed the ownership check, so the address got every one of their notifications, a message from support to either included. `EmailRepository::mailable` now returns only the addresses the account holds: the ones it owns, or, for an address nobody owns, the ones it verified more recently than any other account, the lowest account ID breaking a tie. Announcements apply the same rule. Closes #622
3ccafb2 to
9f1656c
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of PiquelChips Closing as superseded by #653. A disabled account will keep its verified addresses, so no other account can register one, and an address can no longer be shared. The per-channel filtering that #619, #621, #625 and #626 add then has nothing to filter. The fix PR for #653 closes the issues these four were for. |
Stacked on #621. This is the notification half of #622; #625 does announcements.
When two disabled accounts verified the same address, nobody owns it, so each of them passed #621's ownership check. The address got both accounts' notification emails, a message from support to either one included.
A notification is now emailed to an address only for the account that holds it. That's the account that owns it, an active one or one being deleted. If nobody owns it, it's the account that verified it most recently, and the lowest account ID breaks a tie. This is the same rule as #625, applied in
EmailRepository::mailable. The most recent verifier is the last one to prove they read that mailbox, so their notifications go there and the other account's don't.The new test,
an_address_disabled_accounts_share_gets_one_notificationinadmin/tests/messages.rs, fails on #621: the first account's message is emailed to the shared address (1, expected 0). The developer guide's notifications and administration pages now describe the rule.Closes #622
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)
🤖 Generated with Claude Code