Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
424ba500
Commit
424ba500
authored
Jul 28, 2018
by
Julian Rother
Browse files
Fixed auth handler for hls fragments
parent
9d94365e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
424ba500
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment