Hawkowl/fix missing auth (#5328)

pull/5340/head
Amber Brown 2019-06-04 15:54:27 +10:00 committed by GitHub
parent fec2dcb1a5
commit b2b90b7d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/5328.misc Normal file
View File

@ -0,0 +1 @@
The base classes for the v1 and v2_alpha REST APIs have been unified.

View File

@ -29,6 +29,7 @@ class VoipRestServlet(RestServlet):
def __init__(self, hs): def __init__(self, hs):
super(VoipRestServlet, self).__init__() super(VoipRestServlet, self).__init__()
self.hs = hs self.hs = hs
self.auth = hs.get_auth()
@defer.inlineCallbacks @defer.inlineCallbacks
def on_GET(self, request): def on_GET(self, request):