Ensure an auth instance is available to ListMediaInRoom (#5967)

* Ensure an auth instance is available to ListMediaInRoom

Fixes https://github.com/matrix-org/synapse/issues/5737

* Changelog
code_spécifique_watcha
Travis Ralston 5 years ago committed by GitHub
parent 8401bcd206
commit 0eac7077c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/5967.bugfix
  2. 1
      synapse/rest/admin/media.py

@ -0,0 +1 @@
Fix list media admin API always returning an error.

@ -60,6 +60,7 @@ class ListMediaInRoom(RestServlet):
def __init__(self, hs):
self.store = hs.get_datastore()
self.auth = hs.get_auth()
@defer.inlineCallbacks
def on_GET(self, request, room_id):

Loading…
Cancel
Save