serve: Use Cdm.get_keys() instead of accessing _sessions
This commit is contained in:
parent
c73078b7a9
commit
93d9561fac
|
@ -294,8 +294,7 @@ async def parse_license(request: web.Request) -> web.Response:
|
||||||
"type": key.type,
|
"type": key.type,
|
||||||
"permissions": key.permissions,
|
"permissions": key.permissions,
|
||||||
}
|
}
|
||||||
for key in cdm._sessions[session_id].keys
|
for key in cdm.get_keys(session_id, key_type)
|
||||||
if not key_type or key.type == key_type
|
|
||||||
]
|
]
|
||||||
|
|
||||||
return web.json_response({
|
return web.json_response({
|
||||||
|
|
Loading…
Reference in New Issue