Added sharing to anyone with link, changed home page

This commit is contained in:
Stefan Zermatten
2015-06-09 17:06:51 +02:00
parent 4f1376a666
commit 0d75cd5d15
11 changed files with 129 additions and 31 deletions

View File

@@ -1,12 +1,12 @@
Meteor.publish("singleCharacter", function(characterId){
userId = this.userId;
if (!userId) return [];
var char = Characters.findOne({
_id: characterId,
$or: [
{readers: userId},
{writers: userId},
{owner: userId},
{"settings.viewPermission": "public"},
],
});
if (char){