feat: Enhance security by adding @login_required to multiple views and replacing print statements with logger.debug

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ross
2026-04-30 21:35:08 +01:00
co-authored by Copilot
parent 5d37cad48d
commit 2aff9516ac
13 changed files with 389 additions and 113 deletions
+7 -1
View File
@@ -225,9 +225,15 @@ class AuthorOrCheckerRequiredMixin(object):
# return render(request, "sbas/question_detail.html", {"question": question})
@login_required
def active_exams(request):
"""List all active SBA exams (candidate-facing).
Scope: authenticated users only.
Functionality: returns all non-archived active exams as a list for candidates
to take.
"""
exams = Exam.objects.all()
print(exams)
active_exams = []