diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-10-05 12:19:12 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-10-05 12:19:12 -0300 |
commit | dccaf79789b5f52848cfedd82ca4a2999de1432c (patch) | |
tree | 2c8cfea36703308bbfa00abf37ebc66676aa5fb0 /common/src | |
parent | c7baad4f07ec8a44bd12113775c40974be3a4fb9 (diff) |
[bug] fix leap mx by default false on ensure_ddocs
ensure_ddocs is a privileged operation. The code was defaulting to True,
which caused unprivileged code to fail. This commit changes it to False,
forcing you to check your privileges and declare a new argument when
calling in order to ensure that this behavior is only supposed to happen
on privileged parts.
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/leap/soledad/common/couch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/leap/soledad/common/couch.py b/common/src/leap/soledad/common/couch.py index 10a1b277..3dee1473 100644 --- a/common/src/leap/soledad/common/couch.py +++ b/common/src/leap/soledad/common/couch.py @@ -404,7 +404,7 @@ class CouchDatabase(CommonBackend): return cls( url, dbname, replica_uid=replica_uid, ensure_ddocs=ensure_ddocs) - def __init__(self, url, dbname, replica_uid=None, ensure_ddocs=True): + def __init__(self, url, dbname, replica_uid=None, ensure_ddocs=False): """ Create a new Couch data container. |