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

Commit

Permalink
Ensure an auth instance is available to ListMediaInRoom (#5967)
Browse files Browse the repository at this point in the history
* Ensure an auth instance is available to ListMediaInRoom

Fixes #5737

* Changelog
  • Loading branch information
turt2live authored Sep 3, 2019
1 parent 8401bcd commit 0eac707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit 0eac707

Please sign in to comment.