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

@@ -57,6 +57,7 @@
<v-divider />
</v-list>
<creature-folder-list
v-if="signedIn"
dense
:creatures="CreaturesWithNoParty"
:folders="folders"
@@ -80,7 +81,6 @@ export default {
components: {
CreatureFolderList
},
// @ts-ignore
meteor: {
$subscribe: {
'characterList': [],

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