summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-19 19:15:45 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-19 19:15:45 +0000
commit1964f11955225161cbe30372787f05478ece687c (patch)
tree2327863c173ea42a93bfabc72d42776b833b9033 /tests/rest
parentExclude rejected state events when calculating state at backwards extrems (#6... (diff)
parentAdd option to allow profile queries without sharing a room (#6523) (diff)
downloadsynapse-1964f11955225161cbe30372787f05478ece687c.tar.xz
Add option to allow profile queries without sharing a room (#6523)
* commit 'bfb95654c':
  Add option to allow profile queries without sharing a room (#6523)
Diffstat (limited to 'tests/rest')
-rw-r--r--tests/rest/client/v1/test_profile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/client/v1/test_profile.py b/tests/rest/client/v1/test_profile.py

index 6088bce154..8df58b4a63 100644 --- a/tests/rest/client/v1/test_profile.py +++ b/tests/rest/client/v1/test_profile.py
@@ -237,7 +237,7 @@ class ProfilesRestrictedTestCase(unittest.HomeserverTestCase): config = self.default_config() config["require_auth_for_profile_requests"] = True - config["limit_profile_requests_to_known_users"] = True + config["limit_profile_requests_to_users_who_share_rooms"] = True self.hs = self.setup_test_homeserver(config=config) return self.hs @@ -310,6 +310,7 @@ class OwnProfileUnrestrictedTestCase(unittest.HomeserverTestCase): def make_homeserver(self, reactor, clock): config = self.default_config() config["require_auth_for_profile_requests"] = True + config["limit_profile_requests_to_users_who_share_rooms"] = True self.hs = self.setup_test_homeserver(config=config) return self.hs