mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
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
This commit is contained in:
parent
8401bcd206
commit
0eac7077c9
1
changelog.d/5967.bugfix
Normal file
1
changelog.d/5967.bugfix
Normal file
@ -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…
Reference in New Issue
Block a user