[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:
parent
51cabd2c69
commit
4ab91a958d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue