|
@@ -69,6 +69,10 @@ if (Meteor.isClient) {
|
|
canEdit: function () {
|
|
canEdit: function () {
|
|
let doc = Documents.findOne({ _id: Session.get("docid") });
|
|
let doc = Documents.findOne({ _id: Session.get("docid") });
|
|
return doc && doc.owner === Meteor.userId();
|
|
return doc && doc.owner === Meteor.userId();
|
|
|
|
+ },
|
|
|
|
+ isPrivate: function () {
|
|
|
|
+ let doc = Documents.findOne({ _id: Session.get("docid") });
|
|
|
|
+ return !!(doc.isPrivate);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|