

@defer.inlineCallbacks
def on_GET(self, request, user_id, room_id):
    requester = (yield self.auth.get_user_by_req(self))
    if (user_id != requester.user.to_string()):
        raise AuthError(403, 'Cannot get tags for other users.')
    tags = (yield self.store.get_tags_for_room(user_id, room_id))
    defer.returnValue((200, {
        'tags': tags,
    }))

dataset/ETHPy150Open matrix-org/synapse/synapse/rest/client/v2_alpha/tags.py TagListServlet.on_GET/VarMisuse@31/42 `request`->`self`