Fix account deletion

pull/1/head
yflory 4 years ago
parent aa335909a4
commit 958fa726f9

@ -706,12 +706,14 @@ define([
}, _w(function (obj) { }, _w(function (obj) {
if (obj && obj.error) { if (obj && obj.error) {
give(); give();
w();
return void _w.abort(); return void _w.abort();
} }
var md = obj[0]; var md = obj[0];
var isOwner = md && Array.isArray(md.owners) && md.owners.indexOf(edPublic) !== -1; var isOwner = md && Array.isArray(md.owners) && md.owners.indexOf(edPublic) !== -1;
if (!isOwner) { if (!isOwner) {
give(); give();
w();
return void _w.abort(); return void _w.abort();
} }
otherOwners = md.owners.some(function (ed) { return ed !== edPublic; }); otherOwners = md.owners.some(function (ed) { return ed !== edPublic; });

Loading…
Cancel
Save