mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
notifications route; added middleware.authenticate to user/uploadpicture api route
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
var app,
|
||||
clientScripts,
|
||||
middleware = {},
|
||||
@@ -19,7 +18,6 @@ var app,
|
||||
api: require('./../controllers/api')
|
||||
};
|
||||
|
||||
|
||||
middleware.authenticate = function(req, res, next) {
|
||||
if(!req.user) {
|
||||
if (res.locals.isAPI) {
|
||||
|
||||
Reference in New Issue
Block a user