From: Joar Wandborg Date: Wed, 2 Jan 2013 19:05:07 +0000 (+0100) Subject: Made api_test use @require_active_login X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=78fa73bcd57f46b3711eba22a3537f3965069d4f;p=mediagoblin.git Made api_test use @require_active_login --- 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}