Skip to content
Snippets Groups Projects
Verified Commit 41fe91eb authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add missing login_required

parent 110d5f55
No related branches found
No related tags found
1 merge request!31Biscuit merge. Closes #53.
......@@ -73,12 +73,6 @@ def my_timetable(
super_el = person.primary_group
lesson_periods_person = person.lesson_periods_as_participant
elif person.is_teacher():
# Teacher
type_ = "teacher"
super_el = person
lesson_periods_person = person.lesson_periods_as_teacher
else:
# If no student or teacher, redirect to all timetables
return redirect("all_timetables")
......@@ -285,6 +279,7 @@ def delete_substitution(request: HttpRequest, id_: int, week: int) -> HttpRespon
)
@login_required
def substitutions(
request: HttpRequest,
year: Optional[int] = None,
......
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