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

Yet another small auth handler fix

parent 424ba500
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment