Skip to content
Snippets Groups Projects
Commit 184dedb9 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix predicate

parent c9892b7a
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
Pipeline #174408 failed
......@@ -312,7 +312,7 @@ def is_lesson_event_teacher(user: User, obj: LessonEvent):
or a teacher of the course, if the lesson event has one.
"""
if obj:
return obj.course and is_course_teacher(user, obj) or user.person in obj.all_teachers
return obj.course and is_course_teacher(user, obj.course) or user.person in obj.all_teachers
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment