Skip to content
Snippets Groups Projects
Commit e196f648 authored by Martin Mareš's avatar Martin Mareš
Browse files

Fixed a typo in exception name

parent f1420d53
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ class OwlFlask(Flask): ...@@ -65,7 +65,7 @@ class OwlFlask(Flask):
.filter_by(uid=g.uid, cid=g.course.cid) .filter_by(uid=g.uid, cid=g.course.cid)
) )
if not enroll: if not enroll:
raise werkzeug.exceptions.Forbiden('Not enrolled in this course') raise werkzeug.exceptions.Forbidden('Not enrolled in this course')
g.is_teacher = enroll.is_teacher g.is_teacher = enroll.is_teacher
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment