Added character list. Fixed TempHP
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Meteor.publish("characterList",function(userId){
|
||||
//TODO also return characters this user can view
|
||||
return Characters.find();
|
||||
if(!userId) return;
|
||||
return Characters.find({$or: [ {readers: userId}, {writers: userId}, {owner: userId} ] });
|
||||
});
|
||||
|
||||
@@ -14,5 +14,6 @@ Meteor.publish("singleCharacter", function(characterId, userId){
|
||||
Notes.find({charId: characterId}),
|
||||
Spells.find({charId: characterId}),
|
||||
SpellLists.find({charId: characterId}),
|
||||
TemporaryHitPoints.find({charId: characterId}),
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user