From 32e2b01d84a1645f1be3d55d01cee228945bf9e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Thu, 17 Nov 2011 11:59:54 +0000 Subject: [PATCH] (correctly) require login for all device views --- mygpo/web/views/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mygpo/web/views/device.py b/mygpo/web/views/device.py index 3ef883f0..361aaa7a 100644 --- a/mygpo/web/views/device.py +++ b/mygpo/web/views/device.py @@ -65,9 +65,9 @@ def device_decorator(f): -@device_decorator @manual_gc @login_required +@device_decorator def show(request, device): user = migrate.get_or_migrate_user(request.user) @@ -254,6 +254,7 @@ def delete(request, device): return HttpResponseRedirect(reverse('devices')) +@login_required @device_decorator def delete_permanently(request, device): -- 2.11.4.GIT