0
我有以下代碼呈現集合中currentUsers的文檔。但是,我希望屬於同一組織的管理員也能夠查看和編輯該集合。 this.user.profile.organization不起作用。那麼,我將如何讓這個對象可以被管理員從屬於同一個組織。生成的文件獲取當前用戶的組織。服務器端流星this.userprofile
Meteor.publish('skills', function skillsPublication() {
return Skills.find({
owner: this.userId,
});
});