summary refs log tree commit diff
diff options
context:
space:
mode:
authorHalf-Shot <will@half-shot.uk>2019-12-11 17:29:13 +0000
committerHalf-Shot <will@half-shot.uk>2019-12-18 10:43:23 +0000
commit6861cc1d5a0d568a12386c27cda84a22155717e7 (patch)
tree2f5af9adb64a6de868d621d4f668824a27dd9a0b
parentsample config update (diff)
downloadsynapse-6861cc1d5a0d568a12386c27cda84a22155717e7.tar.xz
c&p fail
-rw-r--r--synapse/config/server.py4
-rw-r--r--tests/rest/client/v1/test_profile.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 2763ff82fc..5298ae6881 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -104,7 +104,7 @@ class ServerConfig(Config):
 
         # Whether to require sharing a room with a user to retrieve their
         # profile data
-        self.limit_profile_requests_to_known_users = config.get(
+        self.limit_profile_requests_to_users_who_share_rooms = config.get(
             "limit_profile_requests_to_users_who_share_rooms", False,
         )
 
@@ -632,7 +632,7 @@ class ServerConfig(Config):
         # requests. Profile requests from other servers should be checked by the
         # requesting server. Defaults to 'false'.
         #
-        #limit_profile_requests_to_known_users: false
+        #limit_profile_requests_to_users_who_share_rooms: false
 
         # If set to 'true', removes the need for authentication to access the server's
         # public rooms directory through the client API, meaning that anyone can
diff --git a/tests/rest/client/v1/test_profile.py b/tests/rest/client/v1/test_profile.py
index e3f9ec3f69..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,7 +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_known_users"] = True
+        config["limit_profile_requests_to_users_who_share_rooms"] = True
         self.hs = self.setup_test_homeserver(config=config)
 
         return self.hs