Protect dictionary from bots.
[wolnelektury.git] / src / dictionary / urls.py
index 8f11ac8..5413445 100644 (file)
@@ -1,9 +1,10 @@
 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
+from django.contrib.auth.decorators import login_required
 from django.urls import path
 from dictionary.views import NotesView
 
 urlpatterns = [
 from django.urls import path
 from dictionary.views import NotesView
 
 urlpatterns = [
-    path('', NotesView.as_view(), name='dictionary_notes'),
+    path('', login_required(NotesView.as_view()), name='dictionary_notes'),
 ]
 ]