Permalink
Browse files

Step 15.9: Show private parties to the invited and owners only

  • Loading branch information...
1 parent b6eb92d commit c3d46e36411315859e90efa9c8e2a69fbbe5dfe3 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 server/imports/publications/parties.ts
@@ -36,6 +36,12 @@ function buildQuery(partyId?: string, location?: string): Object {
$exists: true
}
}]
+ },
+ {
+ $and: [
+ { invited: this.userId },
+ { invited: { $exists: true } }
+ ]
}]
};

0 comments on commit c3d46e3

Please sign in to comment.