mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
guest post fix
This commit is contained in:
@@ -149,6 +149,10 @@ var bcrypt = require('bcryptjs'),
|
|||||||
};
|
};
|
||||||
|
|
||||||
User.isReadyToPost = function(uid, callback) {
|
User.isReadyToPost = function(uid, callback) {
|
||||||
|
if (parseInt(uid, 10) === 0) {
|
||||||
|
return callback();
|
||||||
|
}
|
||||||
|
|
||||||
async.parallel({
|
async.parallel({
|
||||||
userData: function(next) {
|
userData: function(next) {
|
||||||
User.getUserFields(uid, ['banned', 'lastposttime', 'email', 'email:confirmed'], next);
|
User.getUserFields(uid, ['banned', 'lastposttime', 'email', 'email:confirmed'], next);
|
||||||
|
|||||||
Reference in New Issue
Block a user