Skip to content
Snippets Groups Projects
Unverified Commit 0eac7077 authored by Travis Ralston's avatar Travis Ralston Committed by GitHub
Browse files

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
parent 8401bcd2
No related branches found
No related tags found
No related merge requests found
Fix list media admin API always returning an error.
...@@ -60,6 +60,7 @@ class ListMediaInRoom(RestServlet): ...@@ -60,6 +60,7 @@ class ListMediaInRoom(RestServlet):
def __init__(self, hs): def __init__(self, hs):
self.store = hs.get_datastore() self.store = hs.get_datastore()
self.auth = hs.get_auth()
@defer.inlineCallbacks @defer.inlineCallbacks
def on_GET(self, request, room_id): def on_GET(self, request, room_id):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment