diff --git a/core/core.js b/core/core.js index 0550d468..01c4f84b 100644 --- a/core/core.js +++ b/core/core.js @@ -338,7 +338,7 @@ async function getProcessBlob(blobId, key, options) { print('Done.'); }; imports.core.deleteUser = function(user) { - return imports.core.permissionTest('delete_user').then(function() { + return Promise.resolve(imports.core.permissionTest('delete_user')).then(function() { let db = new Database('auth'); db.remove('user:' + user); @@ -402,7 +402,7 @@ async function getProcessBlob(blobId, key, options) { if (process.credentials && process.credentials.session && process.credentials.session.name) { - return imports.core.permissionTest('ssb_append').then(function() { + return Promise.resolve(imports.core.permissionTest('ssb_append')).then(function() { return ssb.appendMessageWithIdentity(process.credentials.session.name, id, message); }); }