Fixed tabletop neighbor characters leaking into the sidebar when logged out
This commit is contained in:
@@ -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': [],
|
||||
|
||||
@@ -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