mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
closes #365, allow guest posting. enabled from admin/settings, defaults to disabled
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user