Commit d6827209 authored by Julian Rother's avatar Julian Rother

Yet another small auth handler fix

parent 424ba500
......@@ -406,7 +406,7 @@ def auth(): # For use with nginx auth_request
LEFT JOIN perm ON ((lectures.id = perm.lecture_id OR courses.id = perm.course_id) AND NOT perm.deleted)
WHERE lectures.id = ?
AND (courses.visible AND lectures.visible)
ORDER BY perm.video_id DESC, perm.lecture_id DESC, perm.course_id DESC''', int(handle[2:]))
ORDER BY perm.video_id DESC, perm.lecture_id DESC, perm.course_id DESC''', int(handle))
else:
perms = query('''SELECT lectures.id AS lecture, perm.*
FROM streams
......
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