fix comment edit bug

This commit is contained in:
Sacha Greif 2015-09-25 09:59:29 +09:00
parent 9d5b835810
commit ca18dc1aa2
2 changed files with 1 additions and 5 deletions

View file

@ -1,6 +1,6 @@
<template name="comment_edit">
<div class="comment-edit">
{{#checker check="edit" doc=post message="sorry_you_cannot_edit_this_comment"}}
{{#checker check="edit" doc=comment message="sorry_you_cannot_edit_this_comment"}}
<div class="grid grid-module">
<div class="comment-form">

View file

@ -1,8 +1,4 @@
Template.comment_edit.helpers({
canEdit: function () {
var comment = this;
return Users.can.edit(Meteor.user(), comment);
},
commentFields: function () {
return Comments.simpleSchema().getEditableFields(Meteor.user());
}