mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #4906
This commit is contained in:
@@ -222,7 +222,7 @@ apiController.getObject = function(req, res, next) {
|
||||
|
||||
apiController.getCurrentUser = function(req, res, next) {
|
||||
if (!req.uid) {
|
||||
return helpers.notAllowed(req, res);
|
||||
return res.status(401).json('not-authorized');
|
||||
}
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
|
||||
Reference in New Issue
Block a user