Skip to content

Commit

Permalink
Step 15.9: Show private parties to the invited and owners only
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 14, 2016
1 parent b6eb92d commit c3d46e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/imports/publications/parties.ts
Expand Up @@ -36,6 +36,12 @@ function buildQuery(partyId?: string, location?: string): Object {
$exists: true
}
}]
},
{
$and: [
{ invited: this.userId },
{ invited: { $exists: true } }
]
}]
};

Expand Down

0 comments on commit c3d46e3

Please sign in to comment.