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:
+7
-1
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user