Doc WebDAV: allow auth of False db, even with user set

This is another workaround for nautilus, that descends into the db (=does
authorization) and then requests info for the parent again
(causing db=False later).

bzr revid: p_christ@hol.gr-20100624150122-tntum07kgth2ogup
This commit is contained in:
P. Christeas 2010-06-24 18:01:22 +03:00
parent 665103115d
commit 4b30a47879
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class DAVAuthProvider(OpenERPAuthProvider):
""" authenticate, but also allow the False db, meaning to skip
authentication when no db is specified.
"""
if db is False and user is None and passwd is None:
if db is False:
return True
return OpenERPAuthProvider.authenticate(self, db, user, passwd, client_address)