fix: disable email transcript for free plans (#13509)

- Block email transcript functionality for accounts without a paid plan
to prevent SES abuse.
This commit is contained in:
Vishnu Narayanan
2026-02-11 21:21:36 +05:30
committed by GitHub
parent 7b512bd00e
commit 00ed074d72
5 changed files with 17 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ module AccountEmailRateLimitable
Redis::Alfred.get(email_count_cache_key).to_i
end
def email_transcript_enabled?
true
end
def within_email_rate_limit?
return true if emails_sent_today < email_rate_limit