Skip to content

Commit 989a923

Browse files
committed
fix: allow saving _local docs
1 parent 0694641 commit 989a923

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/validate-doc-update.js

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ module.exports = function (newDoc, oldDoc, userCtx, secObj) {
1111
return
1212
}
1313

14+
if (newDoc._id.substr(0, 7) === '_local/') {
15+
return
16+
}
17+
1418
if ((oldDoc && oldDoc.type !== 'user') || newDoc.type !== 'user') {
1519
throwError('doc.type must be user')
1620
}

0 commit comments

Comments
 (0)