|
|
@ -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; });
|
|
|
|