diff options
author | Neil Johnson <neil@matrix.org> | 2018-08-03 17:55:50 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-08-03 17:55:50 +0100 |
commit | e10830e9765eb3897da5af6ffb4809badb8e3009 (patch) | |
tree | ce610191673cdbd0965f9e2fb0aa55bd7d09271b /synapse/api | |
parent | fix (lots of) py3 test failures (diff) | |
download | synapse-e10830e9765eb3897da5af6ffb4809badb8e3009.tar.xz |
wip commit - tests failing
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/auth.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 943a488339..d8ebbbc6e8 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -775,7 +775,7 @@ class Auth(object): ) @defer.inlineCallbacks - def check_auth_blocking(self, error): + def check_auth_blocking(self): """Checks if the user should be rejected for some external reason, such as monthly active user limiting or global disable flag Args: @@ -785,4 +785,6 @@ class Auth(object): if self.hs.config.limit_usage_by_mau is True: current_mau = yield self.store.get_monthly_active_count() if current_mau >= self.hs.config.max_mau_value: - raise error + raise AuthError( + 403, "MAU Limit Exceeded", errcode=Codes.MAU_LIMIT_EXCEEDED + ) |