Skip to content
Snippets Groups Projects
Commit 424ba500 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed auth handler for hls fragments

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