Skip to content
Snippets Groups Projects
Commit 29feeab2 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix one remaining call to isModerator.

parent b0d44f41
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ CommentSchema = new mongoose.Schema({ ...@@ -32,7 +32,7 @@ CommentSchema = new mongoose.Schema({
// When moderator posts comment, mark it automatically as read. // When moderator posts comment, mark it automatically as read.
CommentSchema.methods.saveNew = function(user, next) { CommentSchema.methods.saveNew = function(user, next) {
var comment = this; var comment = this;
if (util.isModerator(user)) { if (user.moderator) {
comment.save(function(err) { comment.save(function(err) {
var meta = new Meta({ var meta = new Meta({
userId: user.userid, userId: user.userid,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment