From 78fa73bcd57f46b3711eba22a3537f3965069d4f Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Wed, 2 Jan 2013 20:05:07 +0100 Subject: [PATCH] Made api_test use @require_active_login --- mediagoblin/plugins/api/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py index 0991297d..6aa4ef9f 100644 --- a/mediagoblin/plugins/api/views.py +++ b/mediagoblin/plugins/api/views.py @@ -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} -- 2.25.1