mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix comment edit bug
This commit is contained in:
parent
9d5b835810
commit
ca18dc1aa2
2 changed files with 1 additions and 5 deletions
|
@ -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">
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue