Reviewers: ,


Please review this at http://codereview.tryton.org/426002/

Affected files:
  M trytond/protocols/webdav.py


Index: trytond/protocols/webdav.py
===================================================================
--- a/trytond/protocols/webdav.py
+++ b/trytond/protocols/webdav.py
@@ -558,8 +558,10 @@
     def get_userinfo(self, user, password, command=''):
         path = urlparse.urlparse(self.path).path
         dbname = urllib.unquote_plus(path.split('/', 2)[1])
+        database = Database().connect()
         if not dbname:
-            Database().connect()
+            return True
+        elif dbname not in database.list(database.cursor()):
             return True
         if user:
             user = int(login(dbname, user, password, cache=False))


--
[email protected] mailing list

Reply via email to