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 committed Nov 27, 2016
1 parent 6373a16 commit d9df62a
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 d9df62a

Please sign in to comment.