From bbab9d1021ce9ac3863af8825f3b4df2dd179afa Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 25 Jul 2013 22:27:12 +0200 Subject: [PATCH] require login for chunk edits --- apps/catalogue/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index e1dc2a30..ebc35751 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -352,6 +352,7 @@ def chunk_add(request, slug, chunk): }) +@login_required def chunk_edit(request, slug, chunk): try: doc = Chunk.get(slug, chunk) @@ -389,6 +390,7 @@ def chunk_edit(request, slug, chunk): @transaction.commit_on_success +@login_required def chunk_mass_edit(request): if request.method == 'POST': ids = map(int, filter(lambda i: i.strip()!='', request.POST.get('ids').split(','))) -- 2.20.1