mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 02:55:03 -04:00
Add option to allow profile queries without sharing a room (#6523)
This commit is contained in:
parent
6920d88892
commit
bfb95654c9
5 changed files with 28 additions and 1 deletions
|
@ -237,6 +237,7 @@ class ProfilesRestrictedTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
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
|
||||
|
@ -309,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue