mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
closes #2304
This commit is contained in:
@@ -9,7 +9,7 @@ var accountHelpers = require('./accounts/helpers');
|
||||
var userController = module.exports;
|
||||
|
||||
userController.getCurrentUser = function (req, res, next) {
|
||||
if (!req.uid) {
|
||||
if (!req.loggedIn) {
|
||||
return res.status(401).json('not-authorized');
|
||||
}
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user