Commit 29feeab2 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix one remaining call to isModerator.

parent b0d44f41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ CommentSchema = new mongoose.Schema({
// When moderator posts comment, mark it automatically as read.
CommentSchema.methods.saveNew = function(user, next) {
    var comment = this;
    if (util.isModerator(user)) {
    if (user.moderator) {
        comment.save(function(err) {
            var meta = new Meta({
                userId: user.userid,