Fixed tabletop neighbor characters leaking into the sidebar when logged out
This commit is contained in:
@@ -43,6 +43,8 @@ Meteor.publish('tabletopUsers', function (tabletopId) {
|
||||
});
|
||||
|
||||
Meteor.publish('otherTabletopCreatures', function (creatureId) {
|
||||
const userId = this.userId;
|
||||
if (!userId) return [];
|
||||
const permissionCreature = Creatures.findOne({
|
||||
_id: creatureId,
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user