Commit 424ba500 authored by Julian Rother's avatar Julian Rother

Fixed auth handler for hls fragments

parent 9d94365e
......@@ -399,7 +399,7 @@ def auth(): # For use with nginx auth_request
return "OK", 200
if url.startswith('pub/hls/'):
handle = url[len('pub/hls/'):].split('_')[0].split('.')[0]
if handle.startswith('l_'):
if handle.isdigit():
perms = query('''SELECT lectures.id AS lecture, perm.*
FROM lectures
JOIN courses ON (lectures.course_id = courses.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment