aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/decorators.py
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2015-10-17 00:18:32 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2015-10-17 00:18:32 +0000
commitfd703bb4d0665958d853b89f6069eefd8a8c8113 (patch)
tree0ff2e4773f667e82e3bf11fb40ac39e2d28d1108 /mediagoblin/decorators.py
parentd216d771f662fc3e0a3417ce06e8355abce99988 (diff)
downloadmediagoblin-fd703bb4d0665958d853b89f6069eefd8a8c8113.tar.lz
mediagoblin-fd703bb4d0665958d853b89f6069eefd8a8c8113.tar.xz
mediagoblin-fd703bb4d0665958d853b89f6069eefd8a8c8113.zip
Fix #5353 - Bug in OAuth which referenced "user"
There was a recent change in 0f3bf8d where several names which were used to refer the actor where renamed to the standard "actor" property name. There were some places in the OAuth decorator and the OAuth views where the old names were still referred. This fixes that.
Diffstat (limited to 'mediagoblin/decorators.py')
-rw-r--r--mediagoblin/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py
index 952b4572..8874d2a0 100644
--- a/mediagoblin/decorators.py
+++ b/mediagoblin/decorators.py
@@ -421,7 +421,7 @@ def oauth_required(controller):
token = authorization[u"oauth_token"]
request.access_token = AccessToken.query.filter_by(token=token).first()
if request.access_token is not None and request.user is None:
- user_id = request.access_token.user
+ user_id = request.access_token.actor
request.user = LocalUser.query.filter_by(id=user_id).first()
return controller(request, *args, **kwargs)