Fixed tabletop neighbor characters leaking into the sidebar when logged out

This commit is contained in:
Thaum Rystra
2024-07-02 13:26:21 +02:00
parent d052d55eb1
commit cba27bb578
2 changed files with 3 additions and 1 deletions

View File

@@ -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,
}, {