Fixed tabletop neighbor characters leaking into the sidebar when logged out
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
<v-divider />
|
<v-divider />
|
||||||
</v-list>
|
</v-list>
|
||||||
<creature-folder-list
|
<creature-folder-list
|
||||||
|
v-if="signedIn"
|
||||||
dense
|
dense
|
||||||
:creatures="CreaturesWithNoParty"
|
:creatures="CreaturesWithNoParty"
|
||||||
:folders="folders"
|
:folders="folders"
|
||||||
@@ -80,7 +81,6 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
CreatureFolderList
|
CreatureFolderList
|
||||||
},
|
},
|
||||||
// @ts-ignore
|
|
||||||
meteor: {
|
meteor: {
|
||||||
$subscribe: {
|
$subscribe: {
|
||||||
'characterList': [],
|
'characterList': [],
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ Meteor.publish('tabletopUsers', function (tabletopId) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Meteor.publish('otherTabletopCreatures', function (creatureId) {
|
Meteor.publish('otherTabletopCreatures', function (creatureId) {
|
||||||
|
const userId = this.userId;
|
||||||
|
if (!userId) return [];
|
||||||
const permissionCreature = Creatures.findOne({
|
const permissionCreature = Creatures.findOne({
|
||||||
_id: creatureId,
|
_id: creatureId,
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
Reference in New Issue
Block a user