I am running,
"sharedb": "^1.0.0-beta",
"sharedb-access": "^5.0.0",
With,
$ node --version
v10.13.0
And when running,
shareDbAccess(backend);
backend.allowCreate('default', async (docId, doc, session) => {
console.log('docId, doc, session:', docId, doc, session);
return false;
})
The console.log never executes and I'm allowed to create the 'default' document even when the function returns false.
All other mehods, allowRead and allowUpdate are working perfectly.
Any ideas why this happens? What I'm doing wrong?
Thanks!
I am running,
With,
And when running,
The
console.lognever executes and I'm allowed to create the 'default' document even when the function returnsfalse.All other mehods,
allowReadandallowUpdateare working perfectly.Any ideas why this happens? What I'm doing wrong?
Thanks!