aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/util.py')
-rw-r--r--mediagoblin/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/util.py b/mediagoblin/util.py
index cf03a93e..c9c57dfc 100644
--- a/mediagoblin/util.py
+++ b/mediagoblin/util.py
@@ -47,7 +47,7 @@ def setup_user_in_request(request):
return
user = None
- user = request.db.User.one(
+ user = request.app.db.User.one(
{'_id': mongokit.ObjectId(request.session['user_id'])})
if not user: