From 83d8d203685cac3f5aed3872897463c7afa50810 Mon Sep 17 00:00:00 2001 From: godofdream Date: Mon, 5 Nov 2012 15:15:17 +0100 Subject: new Setup system, JQuery Web-If --- module/web/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/web/utils.py') diff --git a/module/web/utils.py b/module/web/utils.py index ac85d9f91..ba6a6a59e 100644 --- a/module/web/utils.py +++ b/module/web/utils.py @@ -41,7 +41,7 @@ def set_session(request, user): def get_user_api(s): if s: uid = s.get("uid", None) - if uid is not None: + if (uid is not None) and (PYLOAD is not None): return PYLOAD.withUserContext(uid) return None -- cgit v1.2.3