Use correct requester to sender access method
This commit is contained in:
parent
5b07487294
commit
f721899c69
|
@ -1401,7 +1401,7 @@ class TimestampLookupRestServlet(RestServlet):
|
|||
self, request: SynapseRequest, room_id: str
|
||||
) -> Tuple[int, JsonDict]:
|
||||
requester = await self._auth.get_user_by_req(request)
|
||||
await self._auth.check_user_in_room(room_id, requester.to_string())
|
||||
await self._auth.check_user_in_room(room_id, requester.user.to_string())
|
||||
|
||||
timestamp = parse_integer(request, "ts")
|
||||
|
||||
|
|
Loading…
Reference in a new issue