Commit cd399a94 authored by Magnus Giesbert's avatar Magnus Giesbert

Benachrichtigungen für Kapitelmarker bei Moderatoren deaktiviert

parent ecdc5819
...@@ -43,7 +43,8 @@ def suggest_chapter(lectureid): ...@@ -43,7 +43,8 @@ def suggest_chapter(lectureid):
lectureid, chapter_start, text, datetime.now(), datetime.now(), session.get('user', {'dbid':None})['dbid'], submitter lectureid, chapter_start, text, datetime.now(), datetime.now(), session.get('user', {'dbid':None})['dbid'], submitter
) )
chapter = query('SELECT * FROM chapters WHERE id = ?', id)[0] chapter = query('SELECT * FROM chapters WHERE id = ?', id)[0]
notify_mods('chapter_submitted', course['id'], course=course, lecture=lecture, chapter=chapter) if not ismod():
notify_mods('chapter_submitted', course['id'], course=course, lecture=lecture, chapter=chapter)
if 'ref' in request.values: if 'ref' in request.values:
return redirect(request.values['ref']) return redirect(request.values['ref'])
return 'OK', 200 return 'OK', 200
......
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