projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b228d89
)
Made api_test use @require_active_login
author
Joar Wandborg
<git@wandborg.com>
Wed, 2 Jan 2013 19:05:07 +0000
(20:05 +0100)
committer
Joar Wandborg
<git@wandborg.com>
Wed, 2 Jan 2013 19:05:07 +0000
(20:05 +0100)
mediagoblin/plugins/api/views.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/plugins/api/views.py
b/mediagoblin/plugins/api/views.py
index 0991297d743dd101d379f2ea76963caaffa09615..6aa4ef9fd91120b043f7f9dde0b9ec4a61cf500e 100644
(file)
--- 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}