summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2019-09-03 09:01:30 -0600
committerGitHub <noreply@github.com>2019-09-03 09:01:30 -0600
commit0eac7077c9e6049a86c6fb05ab127ffc84cf7315 (patch)
treedf8ec79fd4085c045b15cf1c8a48d5b687130ef2 /synapse/rest
parentfix typo (diff)
downloadsynapse-0eac7077c9e6049a86c6fb05ab127ffc84cf7315.tar.xz
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
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/media.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/admin/media.py b/synapse/rest/admin/media.py
index f3f63f0be7..ed7086d09c 100644
--- a/synapse/rest/admin/media.py
+++ b/synapse/rest/admin/media.py
@@ -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):