0
0
Fork 0

Allow unblocking email addresses from any matching account (#29305)

This commit is contained in:
Claire 2024-03-20 15:38:00 +01:00 committed by GitHub
parent 0a33be39c1
commit 8a1423a474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View file

@ -128,7 +128,7 @@ module Admin
def unblock_email
authorize @account, :unblock_email?
CanonicalEmailBlock.where(reference_account: @account).delete_all
CanonicalEmailBlock.matching_account(@account).delete_all
log_action :unblock_email, @account