diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-10 11:57:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 11:57:02 +0100 |
commit | 26b62796c2a0809294b4bd6d1ff62aa9c76c631d (patch) | |
tree | bd6bba5ab46ed6f34bf68098e9d0680bd07f40dd /synapse/rest/client | |
parent | Liberapay is now officially recognised, update FUNDING.yml (#5386) (diff) | |
parent | Better wording (diff) | |
download | synapse-26b62796c2a0809294b4bd6d1ff62aa9c76c631d.tar.xz |
Merge pull request #5363 from matrix-org/babolivier/account_validity_send_mail_auth
Don't check whether the user's account is expired on /send_mail requests
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/v2_alpha/account_validity.py | 2 |
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 55c4ed5660..63bdc33564 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) |