diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-06-24 18:01:22 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-06-24 18:01:22 +0300 |
| commit | 4b30a4787979f269b490c21ddc273efdf79a3806 (patch) | |
| tree | 0ddfbcdb695c4999a9072d5bacca81c63c4dd367 /addons/document_webdav/webdav_server.py | |
| parent | 665103115d21b7d5646c30b144bd8436b6ee9546 (diff) | |
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
Diffstat (limited to 'addons/document_webdav/webdav_server.py')
| -rw-r--r-- | addons/document_webdav/webdav_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document_webdav/webdav_server.py b/addons/document_webdav/webdav_server.py index 4dec2eff0f4..610e51a0f07 100644 --- a/addons/document_webdav/webdav_server.py +++ b/addons/document_webdav/webdav_server.py @@ -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) |
