From 5e2dfff14811ec338c6cb00eb3c69903063f10a6 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 4 Aug 2023 00:50:13 +0000 Subject: [PATCH] Remembering permissions never worked??? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4379 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); }