[FIX] web: do not check if db in session match filter if no db

This commit is contained in:
Denis Ledoux 2014-09-15 15:22:04 +02:00
parent b5b7dccd52
commit 685fa26e83
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def ensure_db(redirect='/web/database/selector'):
return
# if db not provided, use the session one
if not db and http.db_filter([request.session.db]):
if not db and request.session.db and http.db_filter([request.session.db]):
db = request.session.db
# if no database provided and no database in session, use monodb