From e22061fc847d0abd562288b7c5a810f9d689bdda Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 29 Jan 2024 13:22:43 -0600 Subject: [PATCH] Add login required to test formatter --- dmoj/urls.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dmoj/urls.py b/dmoj/urls.py index 91df8ec..298b3ce 100644 --- a/dmoj/urls.py +++ b/dmoj/urls.py @@ -407,16 +407,18 @@ urlpatterns = [ include( [ url( - r"^$", test_formatter.TestFormatter.as_view(), name="test_formatter" + r"^$", + login_required(test_formatter.TestFormatter.as_view()), + name="test_formatter", ), url( r"^edit_page$", - test_formatter.EditTestFormatter.as_view(), + login_required(test_formatter.EditTestFormatter.as_view()), name="test_formatter_edit", ), url( r"^download_page$", - test_formatter.DownloadTestFormatter.as_view(), + login_required(test_formatter.DownloadTestFormatter.as_view()), name="test_formatter_download", ), ]