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

Fixed permission query in auth handler, closes #218

parent 5b5b02c7
No related branches found
No related tags found
No related merge requests found
......@@ -524,7 +524,7 @@ def auth(): # For use with nginx auth_request
JOIN courses ON (lectures.course_id = courses.id)
LEFT JOIN perm ON (videos.id = perm.video_id OR lectures.id = perm.lecture_id OR courses.id = perm.course_id)
WHERE videos.path = ?
AND (courses.visible AND lectures.visible AND videos.visible)
AND (courses.visible AND lectures.visible AND videos.visible AND NOT perm.deleted)
ORDER BY perm.video_id DESC, perm.lecture_id DESC, perm.course_id DESC''',
url)
if not perms:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment