diff options
author | godofdream <soilfiction@gmail.com> | 2012-11-05 15:15:17 +0100 |
---|---|---|
committer | godofdream <soilfiction@gmail.com> | 2012-11-05 15:15:17 +0100 |
commit | 83d8d203685cac3f5aed3872897463c7afa50810 (patch) | |
tree | d1218cb219303b77f6c8fd6209a52b5025d56dee /module/web/utils.py | |
parent | improved header layout (diff) | |
download | pyload-83d8d203685cac3f5aed3872897463c7afa50810.tar.xz |
new Setup system, JQuery Web-If
Diffstat (limited to 'module/web/utils.py')
-rw-r--r-- | module/web/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |