Commit 5971ec11 authored by Andreas Valder's avatar Andreas Valder
Browse files

Merge branch 'master' of git.fsmpi.rwth-aachen.de:videoagwebsite/videoagwebsite

parents 66c8b8a9 b85fbb53
......@@ -578,7 +578,7 @@ def suggest_chapter(lectureid):
@app.route('/chapters/<int:lectureid>')
def chapters(lectureid):
chapters = query("SELECT * FROM chapters WHERE lecture_id = ? and visible ORDER BY time DESC", lectureid)
chapters = query("SELECT * FROM chapters WHERE lecture_id = ? AND (visible OR ?) ORDER BY time DESC", lectureid, ismod())
if not chapters:
return 'No chapters found', 404
last = None
......
Supports Markdown
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