summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-03 17:55:50 +0100
committerNeil Johnson <neil@matrix.org>2018-08-03 17:55:50 +0100
commite10830e9765eb3897da5af6ffb4809badb8e3009 (patch)
treece610191673cdbd0965f9e2fb0aa55bd7d09271b /synapse/api
parentfix (lots of) py3 test failures (diff)
downloadsynapse-e10830e9765eb3897da5af6ffb4809badb8e3009.tar.xz
wip commit - tests failing
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/auth.py6
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
+                )