Made api_test use @require_active_login
authorJoar Wandborg <git@wandborg.com>
Wed, 2 Jan 2013 19:05:07 +0000 (20:05 +0100)
committerJoar Wandborg <git@wandborg.com>
Wed, 2 Jan 2013 19:05:07 +0000 (20:05 +0100)
mediagoblin/plugins/api/views.py

index 0991297d743dd101d379f2ea76963caaffa09615..6aa4ef9fd91120b043f7f9dde0b9ec4a61cf500e 100644 (file)
@@ -92,10 +92,8 @@ def post_entry(request):
 
 
 @api_auth
+@require_active_login
 def api_test(request):
-    if not request.user:
-        raise Forbidden()
-
     user_data = {
             'username': request.user.username,
             'email': request.user.email}