forked from cory/tildefriends
Remembering permissions never worked???
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4379 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
958b47548d
commit
5e2dfff148
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user