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

@@ -14,10 +14,11 @@ Template.baseDialog.helpers({
showEdit: function() {
if (this.hideEdit) return false;
var charId = Template.parentData().charId;
var userId = Meteor.userId();
if (!userId) return false;
if (charId){
var char = Characters.findOne(charId);
var userId = Meteor.userId();
if (char && userId)
if (char)
return char.owner === userId ||
_.contains(char.writers, userId);
}