Jaja te la simplificaba a ti!
Que hacemos? Lo dejamos o los filtro yo?

Arturo Tagle

On 23-01-2014, at 23:34, "Pedro" <notifications@github.com> wrote:

> In routes/api/campaign.js:
> 
> > @@ -5,12 +5,22 @@ exports.get = function (req, res) {
> >    var param = (JSON.stringify(req.query) === JSON.stringify({}) ? req.body : req.query);
> >    var campaignMongoose;
> >    if (param.campaign && !req.user.isSuperAdmin) {
> > -    campaignMongoose = model.Campaign.find({_id: param.campaign, company: req.user.company._id});
> > -  } else if (param.campaign && req.user.isSuperAdmin) {
> > +    campaignMongoose = model.Campaign.find({
> > +      _id: param.campaign,
> > +      company: req.user.company._id,
> > +      'status.isDelete' : false
> es que eran tan pocos, que daba lo mismo y simplificaba la programación
> …
> —
> Reply to this email directly or view it on GitHub.