mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:55:04 -04:00
FIXUP: Now testing that the user is admin!
This commit is contained in:
parent
de7f049527
commit
b859919acc
3 changed files with 38 additions and 6 deletions
|
@ -578,7 +578,8 @@ class RoomEventContextServlet(RestServlet):
|
|||
self.auth = hs.get_auth()
|
||||
|
||||
async def on_GET(self, request, room_id, event_id):
|
||||
requester = await self.auth.get_user_by_req(request, allow_guest=True)
|
||||
requester = await self.auth.get_user_by_req(request, allow_guest=False)
|
||||
await assert_user_is_admin(self.auth, requester.user)
|
||||
|
||||
limit = parse_integer(request, "limit", default=10)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue