mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge pull request #855 from AdmitHub/telescope-invites-userid
Use this.userId, not Meteor.user in publications
This commit is contained in:
commit
f4e3764da5
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
Meteor.publish('invites', function (userId) {
|
||||
var invites = Invites.find({invitingUserId: userId})
|
||||
return (this.userId === userId || isAdmin(Meteor.user())) ? invites : []
|
||||
return (this.userId === userId || isAdminById(this.userId)) ? invites : []
|
||||
});
|
Loading…
Add table
Reference in a new issue