mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-18 19:54:48 +01:00
Make POST /publicRooms require auth
This commit is contained in:
parent
b7b62bf9ea
commit
2e67cabd7f
1 changed files with 1 additions and 2 deletions
|
@ -339,8 +339,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_POST(self, request):
|
def on_POST(self, request):
|
||||||
# FIXME
|
yield self.auth.get_user_by_req(request)
|
||||||
# yield self.auth.get_user_by_req(request)
|
|
||||||
|
|
||||||
server = parse_string(request, "server", default=None)
|
server = parse_string(request, "server", default=None)
|
||||||
content = parse_json_object_from_request(request)
|
content = parse_json_object_from_request(request)
|
||||||
|
|
Loading…
Reference in a new issue