From 122127f162a5fa23a3a369c3fe77839cd2bbf9db Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 11 Jul 2020 16:19:43 -0700 Subject: [PATCH] Update webServerPaths.js --- libs/webServerPaths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/webServerPaths.js b/libs/webServerPaths.js index 45b8ad81..fbdff262 100644 --- a/libs/webServerPaths.js +++ b/libs/webServerPaths.js @@ -950,7 +950,7 @@ module.exports = function(s,config,lang,app,io){ app.get([config.webPaths.apiPrefix+':auth/monitor/:ke',config.webPaths.apiPrefix+':auth/monitor/:ke/:id'], function (req,res){ req.ret={ok:false}; res.setHeader('Content-Type', 'application/json'); - s.auth(req.params,(user){ + s.auth(req.params,(user) => { if(user.permissions.get_monitors==="0"){ res.end(s.prettyPrint([])) return