summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-09 17:39:12 +0100
committerNeil Johnson <neil@matrix.org>2018-08-09 17:39:12 +0100
commit09cf13089858902f3cdcb49b9f9bc3d214ba6337 (patch)
tree41ecc0970aa2d09fb0f2c775b2e079638ad608e6 /synapse/handlers/sync.py
parentWhere server is disabled, block ability for locked out users to read new mess... (diff)
downloadsynapse-09cf13089858902f3cdcb49b9f9bc3d214ba6337.tar.xz
only block on sync where user is not part of the mau cohort
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py

index 776ddca638..d3b26a4106 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py
@@ -208,7 +208,12 @@ class SyncHandler(object): Returns: Deferred[SyncResult] """ - yield self.auth.check_auth_blocking() + # If the user is not part of the mau group, then check that limits have + # not been exceeded (if not part of the group by this point, almost certain + # auth_blocking will occur) + user_id = sync_config.user.to_string() + yield self.auth.check_auth_blocking(user_id) + res = yield self.response_cache.wrap( sync_config.request_key, self._wait_for_sync_for_user,