summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-05 16:35:05 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-05 16:35:05 +0100
commitfe13bd52acb67de56fb5e1866d0ec64fff10ed94 (patch)
treee1513f139c11bfadffcd30652020b851e18a1622 /synapse/rest
parentOnly parse from email if provided (diff)
downloadsynapse-fe13bd52acb67de56fb5e1866d0ec64fff10ed94.tar.xz
Don't check whether the user's account is expired on /send_mail requests
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/account_validity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account_validity.py b/synapse/rest/client/v2_alpha/account_validity.py
index fc8dbeb617..9bc1e208ca 100644
--- a/synapse/rest/client/v2_alpha/account_validity.py
+++ b/synapse/rest/client/v2_alpha/account_validity.py
@@ -79,7 +79,7 @@ class AccountValiditySendMailServlet(RestServlet):
         if not self.account_validity.renew_by_email_enabled:
             raise AuthError(403, "Account renewal via email is disabled on this server.")
 
-        requester = yield self.auth.get_user_by_req(request)
+        requester = yield self.auth.get_user_by_req(request, allow_expired=True)
         user_id = requester.user.to_string()
         yield self.account_activity_handler.send_renewal_email_to_user(user_id)