[FIX] web: company_logo route may be accessed with uid = False in some cases, it should still work

bzr revid: odo@openerp.com-20130404143144-3o2j0xbwh4m84tu8
This commit is contained in:
Olivier Dony 2013-04-04 16:31:44 +02:00
parent 30cce00296
commit f0320d4258
1 changed files with 1 additions and 1 deletions

View File

@ -1371,7 +1371,7 @@ class Binary(openerpweb.Controller):
elif dbname is None:
dbname = db_monodb(req)
if uid is None:
if not uid:
uid = openerp.SUPERUSER_ID
if not dbname: