[FIX] allow "none" route to be accessible when logged in

bzr revid: chs@openerp.com-20140130162626-z83x9e6ekdfqku0a
This commit is contained in:
Christophe Simonis
2014-01-30 17:26:26 +01:00
parent 83bd83dc63
commit 7a0262a4d5
+1 -1
View File
@@ -135,7 +135,7 @@ class ir_http(osv.AbstractModel):
m = request.registry.get('ir.module.module')
ids = m.search(cr, openerp.SUPERUSER_ID, [('state', '=', 'installed'), ('name', '!=', 'web')], context=request.context)
installed = set(x['name'] for x in m.read(cr, 1, ids, ['name'], context=request.context))
mods = ['', "web"] + sorted(installed)
mods = [''] + openerp.conf.server_wide_modules + sorted(installed)
self._routing_map = http.routing_map(mods, False, converters=self._get_converters())
return self._routing_map