[FIX] Document : It should be allowed to browse through FTP,disregard to --no-databse-list option

bzr revid: jvo@tinyerp.com-20100512130756-2mtjv7k4kfpdckkg
This commit is contained in:
Jay (Open ERP) 2010-05-12 18:37:56 +05:30
parent 36ef5cb46c
commit 47c1d21759
1 changed files with 2 additions and 2 deletions

View File

@ -283,8 +283,8 @@ class db(netsvc.ExportService):
## Not True: in fact, check if connection to database is possible. The database may exists
return bool(sql_db.db_connect(db_name))
def exp_list(self):
if not tools.config['list_db']:
def exp_list(self, document=False):
if not tools.config['list_db'] and not document:
raise Exception('AccessDenied')
db = sql_db.db_connect('template1')