Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Ensure an auth instance is available to ListMediaInRoom #5967

Merged
merged 2 commits into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5967.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix list media admin API always returning an error.
1 change: 1 addition & 0 deletions synapse/rest/admin/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down