[FIX] web: do not check if db in session match filter if no db
This commit is contained in:
parent
b5b7dccd52
commit
685fa26e83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue