|
|
@ -1189,11 +1189,13 @@ define([
|
|
|
|
// we need to make a copy of this pad in our drive. We're going to check
|
|
|
|
// we need to make a copy of this pad in our drive. We're going to check
|
|
|
|
// if the pad is stored in our MAIN drive.
|
|
|
|
// if the pad is stored in our MAIN drive.
|
|
|
|
// We only need to check this if the current manager is the target (data.teamId)
|
|
|
|
// We only need to check this if the current manager is the target (data.teamId)
|
|
|
|
if (data.teamId === Number(s.id)) {
|
|
|
|
if ((!s.id && !data.teamId) || Number(s.id) === data.teamId) {
|
|
|
|
|
|
|
|
if (!inMyDrive) {
|
|
|
|
inMyDrive = res.some(function (obj) {
|
|
|
|
inMyDrive = res.some(function (obj) {
|
|
|
|
return !obj.fId;
|
|
|
|
return !obj.fId;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Array.prototype.push.apply(allData, res);
|
|
|
|
Array.prototype.push.apply(allData, res);
|
|
|
|
});
|
|
|
|
});
|
|
|
|