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

Fix permission checking

parent 24a7b80a
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 #171301 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) 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