Fix account deletion
parent
aa335909a4
commit
958fa726f9
|
@ -706,12 +706,14 @@ define([
|
|||
}, _w(function (obj) {
|
||||
if (obj && obj.error) {
|
||||
give();
|
||||
w();
|
||||
return void _w.abort();
|
||||
}
|
||||
var md = obj[0];
|
||||
var isOwner = md && Array.isArray(md.owners) && md.owners.indexOf(edPublic) !== -1;
|
||||
if (!isOwner) {
|
||||
give();
|
||||
w();
|
||||
return void _w.abort();
|
||||
}
|
||||
otherOwners = md.owners.some(function (ed) { return ed !== edPublic; });
|
||||
|
|
Loading…
Reference in New Issue