[FIX] http: allow auth="none" routes to works without being logged in when in monodb.

bzr revid: chs@openerp.com-20140130150628-qqbno0nu8mp27b9u
This commit is contained in:
Christophe Simonis 2014-01-30 16:06:28 +01:00
parent 51cabd2c69
commit 4ab91a958d
1 changed files with 0 additions and 4 deletions

View File

@ -963,10 +963,6 @@ class Root(object):
httprequest.session.logout()
db = None
if not db:
# allow auth="none" routes to works without being logged in when in monodb.
httprequest.session.db = db_monodb(httprequest)
def setup_lang(self, httprequest):
if not "lang" in httprequest.session.context:
lang = httprequest.accept_languages.best or "en_US"