summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2016-01-05 18:12:37 +0000
committerRichard van der Hoff <richard@matrix.org>2016-01-13 16:41:42 +0000
commit93afb40cd4413008c40f6bdde032ccf5f1cefd9f (patch)
tree8450163d53161c9ab2b0ffa7d59408a37405669c /synapse/handlers/sync.py
parentMerge pull request #476 from koobs/patch-1 (diff)
downloadsynapse-93afb40cd4413008c40f6bdde032ccf5f1cefd9f.tar.xz
Skip, rather than erroring, invalid guest requests
Erroring causes problems when people make illegal requests, because they
don't know what limit parameter they should pass.

This is definitely buggy. It leaks message counts for rooms people don't
have permission to see, via tokens. But apparently we already
consciously decided to allow that as a team, so this preserves that
behaviour.
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index feea407ea2..9d52d592ba 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -648,7 +648,6 @@ class SyncHandler(BaseHandler):
                 sync_config.user.to_string(),
                 loaded_recents,
                 is_guest=sync_config.is_guest,
-                require_all_visible_for_guests=False
             )
             loaded_recents.extend(recents)
             recents = loaded_recents