@@ -53,6 +53,12 @@ if (Meteor.isClient) {
}
});
+ Template.task.helpers({
+ isOwner: function () {
+ return this.owner === Meteor.userId();
+ }
+ });
+
Template.task.events({
'click .delete': function (e) {
Meteor.call('deleteTask', this._id);