1
0

Merge pull request #5644 from matrix-org/babolivier/profile-allow-self

This commit is contained in:
Andrew Morgan
2020-02-17 13:53:37 +00:00

View File

@@ -508,6 +508,10 @@ class BaseProfileHandler(BaseHandler):
if target_user.to_string() == requester.to_string():
return
# Always allow the user to query their own profile.
if target_user.to_string() == requester.to_string():
return
try:
requester_rooms = yield self.store.get_rooms_for_user(requester.to_string())
target_user_rooms = yield self.store.get_rooms_for_user(