From f4ac22ba3dd111dcafbab92226f5539c5d433df7 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 31 May 2024 16:42:32 +0200 Subject: [PATCH] feat: Only allow logged-in users to edit adoption notices --- src/fellchensammlung/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index cd81986..f932918 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -67,6 +67,7 @@ def adoption_notice_detail(request, adoption_notice_id): return render(request, 'fellchensammlung/details/detail_adoption_notice.html', context=context) +@login_required() def adoption_notice_edit(request, adoption_notice_id): """ Form to update adoption notices