closes #365, allow guest posting. enabled from admin/settings, defaults to disabled

This commit is contained in:
Baris Usakli
2013-11-01 13:04:15 -04:00
parent e8c4bda984
commit 04ed1df0ef
7 changed files with 53 additions and 44 deletions

View File

@@ -37,9 +37,7 @@ var RDB = require('./redis.js'),
function isOwnPost(next) {
posts.getPostField(pid, 'uid', function(author) {
if (author && parseInt(author) > 0) {
next(null, parseInt(author, 10) === parseInt(uid, 10));
}
next(null, parseInt(author, 10) === parseInt(uid, 10));
});
}
@@ -60,6 +58,7 @@ var RDB = require('./redis.js'),
PostTools.edit = function(uid, pid, title, content) {
var success = function() {
async.waterfall([
function(next) {