From f0320d4258ffcdf2a2251786cd6d31af5800e6d5 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 4 Apr 2013 16:31:44 +0200 Subject: [PATCH] [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 --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index a199cba7854..9947ff880e9 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -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: