require login for chunk edits
authorRadek Czajka <radek.czajka@gmail.com>
Thu, 25 Jul 2013 20:27:12 +0000 (22:27 +0200)
committerRadek Czajka <radek.czajka@gmail.com>
Thu, 25 Jul 2013 20:27:12 +0000 (22:27 +0200)
apps/catalogue/views.py

index e1dc2a3..ebc3575 100644 (file)
@@ -352,6 +352,7 @@ def chunk_add(request, slug, chunk):
     })
 
 
     })
 
 
+@login_required
 def chunk_edit(request, slug, chunk):
     try:
         doc = Chunk.get(slug, chunk)
 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
 
 
 @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(',')))
 def chunk_mass_edit(request):
     if request.method == 'POST':
         ids = map(int, filter(lambda i: i.strip()!='', request.POST.get('ids').split(',')))